netsh advfirewall 명령어를 이용한 윈도우 방화벽 켜기/끄기 netsh advfirewall set currentprofile state [ on | off ] netsh advfirewall set --------------------------------------------- ( profile 별 세팅이나 전역 세팅) currentprofile ------------------------- (활성화 profile 세팅) state [ on | off ] ---- (온/오프) Windows/Windows 2008 , 2012 2020.01.28
Windows Tomcat stout 로그 적재하지 않기 기본적으로 tomcat-stdout 로그파일을 별도 관리하지 않으면 단일 파일에 용량만 엄청 증가해 버린다 로그를 관리하고 분석하면 좋겠지만, 로깅을 하지 않으려면 아래와 같이 조치 한다. [ logging 탭 ] - auto 문자열 삭제 Windows/Windows 2008 , 2012 2019.12.23
Windows Server openJDK Download. (윈도우 서버 openJDK 다운로드) https://github.com/ojdkbuild/ojdkbuild ojdkbuild/ojdkbuild Community builds using source code from OpenJDK project - ojdkbuild/ojdkbuild github.com 원하는 버전을 다운로드 받으면 된다. Windows/Windows 2008 , 2012 2019.11.19
윈도우 명령어 [ find ] - 파일에서 텍스트 찾기 find : 파일에서 텍스트 찾는 명령어 /V 지정한 문자열을 포함하지 않는 라인을 표시 /C 지정한 문자열을 포함하는 라인 수를 표시 /N 지정한 문자열을 포함하는 맨 앞에 라인 번호를 표시 /I 대/소문자 구분하지 않고, 찾기 example.txt python is beautiful python is storng python is effective pytho is beautiful pytho is storng pytho is effective find 옵션 없이 사용. (python이라는 문자열 포함하는 라인 출력) C:\>find "python" example.txt ---------- EXAMPLE.TXT python is beautiful python is storng python is effe.. Windows/Windows 2008 , 2012 2019.10.14
Windows 2008 / 2012 Server NTP Clinet Setting w32tm 서비스가 내려가 있으면 기동 w32tm /query /configuration w32tm /config /syncfromflags:manual /manualpeerlist: [ NTP Server Hostname] | [ NTP Server IP ] w32tm /config /update w32tm /resync Windows/Windows 2008 , 2012 2019.10.02
python, grafana, mariadb를 이용한 윈도우 서버 성능 분석 윈도우 서버를 운영하다보면 주기적으로 서버 성능을 분석해야 할 필요가 있다. 윈도우에는 성능모니터링이라는 좋은 유틸프로그램이 있는데, 이를 활용하여 데이터를 수집하고, 수집된 데이터를 DB화 하고, DB화한 데이터를 시각화해 보려 한다. 1. 윈도우즈 성능퍼포먼스 데이터 수집 샘플로 총 수집할 항목은 총 16개 - \Processor(_Total)\% Processor Time - \System\Processor Queue Length - \System\Context Switches/sec - \Memory\% Committed Bytes In Use - \Memory\Available MBytes - \Memory\Free System Page Table Entries - \Memory\Pool Non.. Windows/Windows 2008 , 2012 2019.08.17
python을 이용한 IIS web log 분석 (7) - pandas 연동 SQLLite DB를 생성했다면 직접 DB에 접속해서 쿼리를 날려 분석할 수 도 있겠지만 pandas를 이용하여 연동도 가능하다 import pandas as pd import sqlite3 conn = sqlite3.connect(path) query = 'select * from weblog' df = pd.read_sql_query(query,conn) df['logtime'] = pd.to_datetime(df['logtime']) print(df.dtypes) ----------------------------------------------- logtime datetime64[ns] useragent object scstatus object scbytes int64 timetaken int64.. Windows/Windows 2008 , 2012 2019.08.12
IIS 웹 사이트 개별 시작/중지/응용프로그램 풀 재생 명령어 IIS에 여러개의 사이트를 운영할 수 있는데, 특정 사이트만 정기적으로 재기동해야할 수 있다. 1. IIS 사이트 확인 명령어 - 명령어 : %windir%\system32\inetsrv\appcmd list site - test라는 사이트가 있으며, appcmd 명령어로 "test" 사이트를 시작/중지를 할 수 있다. 2. "test" 사이트 시작 / 중지 - 명령어 : %windir%\system32\inetsrv\appcmd [ start | stop ] /site.name:test 3. "test"사이트 응용프로그램풀 재생 - 명령어 : %windir%\system32\inetsrv\appcmd [ start | stop | recycle ] apppool test Windows/Windows 2008 , 2012 2019.06.26
Apache Tomcat Logging 경로와 Logging 항목 변경 OS : Windows 2012 R2 - 로그파일 용량관리를 별도의 디렉토리로 분리와 일 단위 로그파일 생성 - 분석 항목 추가 %a Remote IP address %A Local IP address %b Bytes sent, excluding HTTP headers, or '-' if zero %B Bytes sent, excluding HTTP headers %h Remote host name (or IP address if enableLookups for the connector is false) %H Request protocol %I Remote logical username .. Windows/Windows 2008 , 2012 2019.04.19
Windows 2012 Tomcat 8 Install Tomcat Homepage : https://tomcat.apache.org Step 1. Windows Service Installer Download Step 2. "Windows Service Installer Downloadapache-tomcat-8.5.40" Execute - Next Step 2. License Agreement - Next Step 3. Choose Components - Next Step 4. Choose Components - Next Step 5. Configuration Option. Tomcat Administrator Login Input User Name : Input Password : Step 6. Java Vitual Machine Input JRE Pa.. Windows/Windows 2008 , 2012 2019.04.19