<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet href="http://rss.egloos.com/style/blog.xsl" type="text/xsl" media="screen"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
	<title>It's My Style !!</title>
	<link>http://sonhj8.egloos.com</link>
	<description>알면 알수록 공부할것이 계속 늘어난다.
무얼 해야하는지 안다!!
이제는 끈임없는 노력뿐!!!</description>
	<language>ko</language>
	<pubDate>Wed, 11 Nov 2009 07:56:39 GMT</pubDate>
	<generator>Egloos</generator>
	<image>
		<title>It's My Style !!</title>
		<url>http://pds15.egloos.com/logo/200911/04/90/e0062490.jpg</url>
		<link>http://sonhj8.egloos.com</link>
		<width>80</width>
		<height>87</height>
		<description>알면 알수록 공부할것이 계속 늘어난다.
무얼 해야하는지 안다!!
이제는 끈임없는 노력뿐!!!</description>
	</image>
  	<item>
		<title><![CDATA[ Whistl_Linux 휘슬 ]]> </title>
		<link>http://sonhj8.egloos.com/2745946</link>
		<guid>http://sonhj8.egloos.com/2745946</guid>
		<description>
			<![CDATA[ 
  <p><br>한국정보보호진흥원에서 신청하면 만들어 주는거다.<br>신청하는 거는 검색하면 정말 마니 나온다. 양식에 맞춰 신청하면 된다.<br><br>whistl은 웹쉴이 도는 의심되는 파일을 찾아내는 것으로 유용하게 쓰이는 툴이다.<br>신청하는 곳에 아이디/패스워드 신청을 하는데 그거 잘 기억해야한다;;;<br>잊어먹음 곤란하다는 ^^;;<br><br>파일을 받아 압축을 풀면 여러 파일이 있다.<br><br>README.txt&nbsp; pattern.bin&nbsp; usage.dat&nbsp; whistl.log&nbsp; whistl_kernel_2.4 whistl_kernel_2.6<br>validate.bin<br><br>README.txt 파일을 보면 한글로 잘 설명이 되어있다. 그걸 꼭 읽고 참고하자!!<br><br>실행하기전에 커널버전에 따른 실행파일을 선택한다.<br>whistl_kernel_2.4 / whistl_kernel_2.6&nbsp; 이 두파일인데 커널버전에 맞게 실행권한을 준다.<br>난 커널이 2.6버전이라 whistl_kernel_2.6에 실행권한을 부여하였다.<br><br>또 바로 실행한다고 되는 것이 아니라 설정을 해야한다.<br><br>./whistl_kernel_2.6 -c<br><br>이라고 하면 다음과 같은 설정이 나온다.<br><br>===================================================================<br>Choose Menu : s</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [1] Checking Directory : /home&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;= 체킹위치<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [2] Inspection Center directory : /tmp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [3] Extension of php&nbsp;&nbsp;&nbsp;&nbsp; : inc,php,php3,php4,php5,ph,txt,html,htm&nbsp;&lt;=&nbsp;php에서&nbsp;찾을 파일명들<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [4] Extension of jsp&nbsp;&nbsp;&nbsp;&nbsp; : jsp,js&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;= jsp에서&nbsp; 찾을 파일명<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [s] save&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;= 저장 <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [q] quit&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;= 나가기<br>====================================================================<br><br>이렇게 해서 나와 실행을 하면 해당 체킹경로에 대해 웹쉘의심 체크를 한다.<br><br>./whistl_kernel_2.6<br><br>실행을 하면 아이디/패스워드 입력란이 나오고 신청한 아이디/비번을 입력한다.<br><br>돌아가기 시작하면 시간이 좀 거리는 편이다.<br>마친 상태는 아래와 같다.<br>=================================================================================<br>id : nanuminet<br>pwd : nanuminet!<br>Checking the configration<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [Config] Checking directory : /home<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [Config] Inspection Center directory : /tmp</p><p>Checking the update status<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [INFO] Pattern Update Finished</p><p><br>Checking /home directory<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [1 Found] /home/hyukjin/경로/파일명<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [1 Found] /home/hyukjin/경로/파일명<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [1 Found] /home/hyukjin/경로/파일명<br></p><p>Check Result<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [INFO] 7365 Files checked<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [INFO] 9 Suspected WebShell<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [INFO] Time cost : 00:53:12<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [INFO] Finish sending the checking result</p><p>[Press &lt;ENTER&gt; to continue]<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [1] [1 Found] /home/hyukjin/경로/파일명<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [2] [1 Found] /home/hyukjin/경로/파일명<br></p><p>[ view result(v), select (hit num), quit(q) ] : q<br>=================================================================================<br><br>q 누르고 나와서 <br><br>해당 내용이 whistl.log 에 로그로 기록이 되어 있으니 확인하면 되겠다.<br>체크된 파일은 의심파일이니 꼭 확인하여 내용을 수정 또는 삭제를 해야한다.</p>			 ]]> 
		</description>
		<category>Linux</category>

		<comments>http://sonhj8.egloos.com/2745946#comments</comments>
		<pubDate>Wed, 11 Nov 2009 07:56:39 GMT</pubDate>
		<dc:creator>베사메무쵸</dc:creator>
	</item>
	<item>
		<title><![CDATA[ rootkit hunter (rkhunter) 설치 ]]> </title>
		<link>http://sonhj8.egloos.com/2744786</link>
		<guid>http://sonhj8.egloos.com/2744786</guid>
		<description>
			<![CDATA[ 
  <p><br>다운<br><br><span style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: medium Gulim; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class="Apple-style-span"><span style="LINE-HEIGHT: 23px; FONT-FAMILY: 돋움, serif; COLOR: rgb(85,85,85); FONT-SIZE: 12px" class="Apple-style-span"><a style="COLOR: rgb(115,163,202) !important; TEXT-DECORATION: none !important" class="editor_blue_text" onclick="window.open(this.href);return false;" href="http://sourceforge.net/projects/rkhunter/">http://sourceforge.net/projects/rkhunter/</a>&nbsp;에서 받아도 되고 <br>바고 받는 것은<br>wget <a href="http://downloads.sourceforge.net/project/rkhunter/rkhunter/1.3.4/rkhunter-1.3.4.tar.gz?use_mirror=cdnetworks-kr-1">http://downloads.sourceforge.net/project/rkhunter/rkhunter/1.3.4/rkhunter-1.3.4.tar.gz?use_mirror=cdnetworks-kr-1</a></span></span><br><br><span style="FONT-FAMILY: 돋움; COLOR: #555555">rkhunter의 압축을 풀고<span class="Apple-converted-space">&nbsp;</span><br>./installer.sh&nbsp; --layout /usr/local --install 옵션으로 플렛폼 독립적인 /usr/local에 설치할수 있다.<br>installer.sh만 실행하여 여러 옵션을 볼 수 있다.<br><br></span><br>보통 기본값으로 설정은 <br>./installer.sh -layout default -install<br><br>=================================================================<br>Checking system for:<br>&nbsp;Rootkit Hunter installer files: found. OK<br>&nbsp;Available file retrieval tools:<br>&nbsp;&nbsp;&nbsp; wget: found. OK<br>Starting installation/update</p><p>Checking PREFIX /usr/local: exists, and is writable. OK<br>Checking installation directories:<br>&nbsp;Directory /usr/local/share/doc/rkhunter-1.3.4: creating: OK.<br>&nbsp;Directory /usr/local/share/man/man8: exists, and is writable. OK<br>&nbsp;Directory /etc: exists, and is writable. OK<br>&nbsp;Directory /usr/local/bin: exists, and is writable. OK<br>&nbsp;Directory /usr/local/lib: exists, and is writable. OK<br>&nbsp;Directory /var/lib: exists, and is writable. OK<br>&nbsp;Directory /usr/local/lib/rkhunter/scripts: creating: OK.<br>&nbsp;Directory /var/lib/rkhunter/db: creating: OK.<br>&nbsp;Directory /var/lib/rkhunter/tmp: creating: OK.<br>&nbsp;Directory /var/lib/rkhunter/db/i18n: creating: OK.<br>&nbsp;Installing check_modules.pl: OK.<br>&nbsp;Installing check_update.sh: OK.<br>&nbsp;Installing check_port.pl: OK.<br>&nbsp;Installing filehashmd5.pl: OK.<br>&nbsp;Installing filehashsha1.pl: OK.<br>&nbsp;Installing showfiles.pl: OK.<br>&nbsp;Installing stat.pl: OK.<br>&nbsp;Installing readlink.sh: OK.<br>&nbsp;Installing backdoorports.dat: OK.<br>&nbsp;Installing mirrors.dat: OK.<br>&nbsp;Installing os.dat: OK.<br>&nbsp;Installing programs_bad.dat: OK.<br>&nbsp;Installing programs_good.dat: OK.<br>&nbsp;Installing defaulthashes.dat: OK.<br>&nbsp;Installing md5blacklist.dat: OK.<br>&nbsp;Installing suspscan.dat: OK.<br>&nbsp;Installing rkhunter.8: OK.<br>&nbsp;Installing ACKNOWLEDGMENTS: OK.<br>&nbsp;Installing CHANGELOG: OK.<br>&nbsp;Installing FAQ: OK.<br>&nbsp;Installing LICENSE: OK.<br>&nbsp;Installing README: OK.<br>&nbsp;Installing WISHLIST: OK.<br>&nbsp;Installing language support files: OK.<br>&nbsp;Installing rkhunter: OK.<br>&nbsp;Installing rkhunter.conf: OK.<br>Installation finished.<br>==============================================================&gt; 설치과정<br><br><span style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: medium Gulim; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class="Apple-style-span"><span style="LINE-HEIGHT: 23px; FONT-FAMILY: 돋움, serif; COLOR: rgb(85,85,85); FONT-SIZE: 12px" class="Apple-style-span">현재 최근버전은 1.3.4이고 tar.gz 형식으로 제공하나 rpm 사용이 가능한 시스템은 rpm으로 만들수도 있다.<br>=&gt; rpm -ta&nbsp; rkhunter-1.3.4.tar.gz 명령으로 /usr/src/redhat/RPMS/noarch/rkhunter-1.3.4-1.noarch.rpm <br><br>rkhunter을 실행한다.<br><br>rkhunter -c<br><br>엔터를 치며 결과를 확인하고 다음 체킹으로 넘겨준다.<br>/var/log/rkhunter.log =&gt; 체킹결과는 이곳에 로그로 저장이 된다.<br><br>다른 옵션들<br><br><span style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; BORDER-COLLAPSE: separate; FONT: medium Gulim; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px" class="Apple-style-span"><span style="LINE-HEIGHT: 23px; FONT-FAMILY: 돋움, serif; COLOR: rgb(85,85,85); FONT-SIZE: 12px" class="Apple-style-span">rkhunter --configfile = 설정 파일 경로 설정<br>rkhunter --append-log = 로그파일을 갱신 하지 않고 덧붙임, 이전로그와 함께 보관<br>rkhunter -c, --check = 시스템 체크<span class="Apple-converted-space">&nbsp;</span><br>rkhunter --sk, --skip-keypress = 기본적으로 각 테스트후 사용자 입력을 기다리나 이 옵션으로 계속 체크 가능<br>rkhunter --rwo, --report-warnings-only = 경고 메세지만 출력<br>rkhunter --display-logfile = 실행 종료후 로그파일 출력<br><br><br></span></span><br></span></span><br><br><br><br></p>			 ]]> 
		</description>
		<category>Linux</category>

		<comments>http://sonhj8.egloos.com/2744786#comments</comments>
		<pubDate>Tue, 10 Nov 2009 10:20:20 GMT</pubDate>
		<dc:creator>베사메무쵸</dc:creator>
	</item>
	<item>
		<title><![CDATA[ WEBALIZER 설치하기 ]]> </title>
		<link>http://sonhj8.egloos.com/2736828</link>
		<guid>http://sonhj8.egloos.com/2736828</guid>
		<description>
			<![CDATA[ 
  웹얼라이져 설치하기!!<div>webalizer</div><div><br />
</div><div><br />
</div><div>yum으로도 설치가 가능하지만 한글로 나오게 하려면 한글 korean옵션을 주어야 하기에 소스컴파일로 설치한다.</div><div><br />
</div><div>먼저 필요한 것을 설치한다.&nbsp;</div><div><br />
</div><div><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;맑은 고딕&quot;;mso-ascii-theme-font:minor-latin;mso-fareast-theme-font:minor-latin;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:&quot;Times New Roman&quot;;mso-bidi-theme-font:minor-bidi;color:black;background:#D9D9D9;mso-shading:white;mso-pattern:gray-15 auto;mso-ansi-language:EN-US;mso-fareast-language:KO;mso-bidi-language:AR-SA">yum install zlib-devel libpng-devel gd-devel&nbsp;</span></div><div><br />
</div><div>그리고 소스를 다운받는다. 공식사이트 가서 다운 받으면 되겠다.</div><div><br />
</div><div><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;맑은 고딕&quot;;mso-ascii-theme-font:minor-latin;mso-fareast-theme-font:minor-latin;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:&quot;Times New Roman&quot;;mso-bidi-theme-font:minor-bidi;color:black;background:#D9D9D9;mso-shading:white;mso-pattern:gray-15 auto;mso-ansi-language:EN-US;mso-fareast-language:KO;mso-bidi-language:AR-SA">wget </span><span lang="EN-US" style="font-size:10.0pt;mso-bidi-font-size:11.0pt;font-family:&quot;맑은 고딕&quot;;mso-ascii-theme-font:minor-latin;mso-fareast-theme-font:minor-fareast;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:&quot;Times New Roman&quot;;mso-bidi-theme-font:minor-bidi;mso-ansi-language:EN-US;mso-fareast-language:KO;mso-bidi-language:AR-SA"><a href="ftp://ftp.mrunix.net/pub/webalizer/webalizer-2.21-02-src.tgz"><span style="mso-bidi-font-size:10.0pt;mso-fareast-font-family:&quot;맑은 고딕&quot;;mso-fareast-theme-font:minor-latin;background:#D9D9D9;mso-shading:white;mso-pattern:gray-15 auto">ftp://ftp.mrunix.net/pub/webalizer/webalizer-2.21-02-src.tgz</span></a></span></div><div><br />
</div><div>일케 wget을 이용하여 바로 다운을 받는다.</div><div><br />
</div><div>다운을 받아 압축을 푼다.</div><div><br />
</div><div><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;맑은 고딕&quot;;mso-ascii-theme-font:minor-latin;mso-fareast-theme-font:minor-latin;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:&quot;Times New Roman&quot;;mso-bidi-theme-font:minor-bidi;color:black;background:#D9D9D9;mso-shading:white;mso-pattern:gray-15 auto;mso-ansi-language:EN-US;mso-fareast-language:KO;mso-bidi-language:AR-SA">tar xfz webalizer-2.21-02-src.tgz&nbsp;</span></div><div><br />
</div><div>그리고 소스컴파일 한다.</div><div><br />
</div><div><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;맑은 고딕&quot;;mso-ascii-theme-font:minor-latin;mso-fareast-theme-font:minor-latin;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:&quot;Times New Roman&quot;;mso-bidi-theme-font:minor-bidi;color:black;background:#D9D9D9;mso-shading:white;mso-pattern:gray-15 auto;mso-ansi-language:EN-US;mso-fareast-language:KO;mso-bidi-language:AR-SA">./configure --prefix=/usr/local/webalizer --with-language=korean&nbsp;</span></div><div><br />
</div><div>prefix로 한곳에 몰아주고 언어를 한국어 옵션 달아준다.</div><div><br />
</div><div><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;맑은 고딕&quot;;mso-ascii-theme-font:minor-latin;mso-fareast-theme-font:minor-latin;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:&quot;Times New Roman&quot;;mso-bidi-theme-font:minor-bidi;color:black;background:#D9D9D9;mso-shading:white;mso-pattern:gray-15 auto;mso-ansi-language:EN-US;mso-fareast-language:KO;mso-bidi-language:AR-SA">make</span></div><div><font class="Apple-style-span" face="'맑은 고딕'" size="3"><span class="Apple-style-span" style="font-size: 13px;"><br />
</span></font></div><div><font class="Apple-style-span" face="'맑은 고딕'" size="3"><span class="Apple-style-span" style="font-size: 13px;"><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;맑은 고딕&quot;;mso-ascii-theme-font:minor-latin;mso-fareast-theme-font:minor-latin;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:&quot;Times New Roman&quot;;mso-bidi-theme-font:minor-bidi;color:black;background:#D9D9D9;mso-shading:white;mso-pattern:gray-15 auto;mso-ansi-language:EN-US;mso-fareast-language:KO;mso-bidi-language:AR-SA">make install&nbsp;</span></span></font></div><div><br />
</div><div>pre픽스로 파일을 몰아 설치하였기에 환경변수 등록해 준다. 명령어 먹히도록!!</div><div><br />
</div><div><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;맑은 고딕&quot;;mso-ascii-theme-font:minor-latin;mso-fareast-theme-font:minor-latin;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:&quot;Times New Roman&quot;;mso-bidi-theme-font:minor-bidi;color:black;background:#D9D9D9;mso-shading:white;mso-pattern:gray-15 auto;mso-ansi-language:EN-US;mso-fareast-language:KO;mso-bidi-language:AR-SA">echo “export PATH=$PATH:/usr/local/webalizer/bin”&gt;&gt; /etc/profile&nbsp;</span></div><div><br />
</div><div><span lang="EN-US" style="font-size:10.0pt;font-family:&quot;맑은 고딕&quot;;mso-ascii-theme-font:minor-latin;mso-fareast-theme-font:minor-latin;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:&quot;Times New Roman&quot;;mso-bidi-theme-font:minor-bidi;color:black;background:#D9D9D9;mso-shading:white;mso-pattern:gray-15 auto;mso-ansi-language:EN-US;mso-fareast-language:KO;mso-bidi-language:AR-SA">source /etc/profile &nbsp; 적용!!</span></div><div><br />
</div><div><br />
</div><div>다음은&nbsp;webalizer.conf 파일을 만드는 것이다.</div><div>기본적으로 제공되는 샘플이 있긴 하지만 원하는 경로에 파일을 두고 실행하면 적용이 될것이다.</div><div>그럼 계정별 웹얼라이져 분석화면이 만들어 지는 것이다.</div><div><br />
</div><div>도메인.webalizer.conf 이런식으로 이름을 달리하여 관리,</div><div><br />
</div><div>기본 conf를 사용하여도 되고 이건 개인적인 conf설정이다.</div><div><br />
</div><div>========================================================================================</div><div><div>LogFile &nbsp; &nbsp; &nbsp; &nbsp; /var/log/httpd/도메인-access_log &nbsp; &nbsp; ### 아파치 access로그 경로</div><div>OutputDir &nbsp; &nbsp; &nbsp; /home/웹얼라이져 웹 생성경로/public_html/webalizer</div><div>HistoryName &nbsp; &nbsp; /var/lib/webalizer/도메인-webalizer.hist &nbsp; &nbsp; &nbsp; &nbsp;###웹얼라이져 해당 도메인 히트파일 경로</div><div>Incremental &nbsp; &nbsp; yes</div><div>IncrementalName /var/lib/webalizer/도메인-webalizer.current</div><div>HostName &nbsp; &nbsp; &nbsp; &nbsp;bluelife.co.kr</div><div>PageType &nbsp; &nbsp; &nbsp; &nbsp;htm*</div><div>PageType &nbsp; &nbsp; &nbsp; &nbsp;php*</div><div>PageType &nbsp; &nbsp; &nbsp; &nbsp;cgi</div><div>PageType &nbsp; &nbsp; &nbsp; &nbsp;pl</div><div>HideSite &nbsp; &nbsp; &nbsp; &nbsp;bluelife.co.kr</div><div>HideSite &nbsp; &nbsp; &nbsp; &nbsp;www.bluelife.co.kr</div><div>HideReferrer &nbsp; &nbsp;Direct Request</div><div>HideReferrer &nbsp; &nbsp;bluelife.co.kr</div><div>HideReferrer &nbsp; &nbsp;www.bluelife.co.kr</div><div>HideReferrer &nbsp; &nbsp;web.bluelife.co.kr</div><div>#HideURL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*.css</div><div>#HideURL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*.CSS</div><div>#HideURL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*.js</div><div>#HideURL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*.JS</div><div>#HideURL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*.gif</div><div>#HideURL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*.GIF</div><div>#HideURL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*.jpg</div><div>#HideURL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*.JPG</div><div>#HideURL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*.jpeg</div><div>#HideURL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*.JPEG</div><div>#HideURL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*.png</div><div>#HideURL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*.PNG</div><div>#HideURL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*.swf</div><div>#HideURL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*.SWF</div><div>#HideURL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*.ra</div><div>#HideURL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*.RA</div><div>#HideURL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*.asf</div><div>#HideURL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*.ASF</div><div>#HideURL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*.wma</div><div>#HideURL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*.WMA</div><div>#HideURL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*.wmv</div><div>#HideURL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*.WMV</div><div>SearchEngine &nbsp; &nbsp;yahoo.com &nbsp; &nbsp; &nbsp; p=</div><div>SearchEngine &nbsp; &nbsp;altavista.com &nbsp; q=</div><div>SearchEngine &nbsp; &nbsp;google.com &nbsp; &nbsp; &nbsp;q=</div><div>SearchEngine &nbsp; &nbsp;eureka.com &nbsp; &nbsp; &nbsp;q=</div><div>SearchEngine &nbsp; &nbsp;lycos.com &nbsp; &nbsp; &nbsp; query=</div><div>SearchEngine &nbsp; &nbsp;lycos.co.kr &nbsp; &nbsp; query=</div><div>SearchEngine &nbsp; &nbsp;hotbot.com &nbsp; &nbsp; &nbsp;MT=</div><div>SearchEngine &nbsp; &nbsp;msn.com &nbsp; &nbsp; &nbsp; &nbsp; MT=</div><div>SearchEngine &nbsp; &nbsp;infoseek.com &nbsp; &nbsp;qt=</div><div>SearchEngine &nbsp; &nbsp;webcrawler &nbsp; &nbsp; &nbsp;searchText=</div><div>SearchEngine &nbsp; &nbsp;excite &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;search=</div><div>SearchEngine &nbsp; &nbsp;netscape.com &nbsp; &nbsp;search=</div><div>SearchEngine &nbsp; &nbsp;mamma.com &nbsp; &nbsp; &nbsp; query=</div><div>SearchEngine &nbsp; &nbsp;alltheweb.com &nbsp; query=</div><div>SearchEngine &nbsp; &nbsp;northernlight.com &nbsp; &nbsp; &nbsp; qr=</div><div>SearchEngine &nbsp; &nbsp;empas.com &nbsp; &nbsp; &nbsp; q=</div><div>SearchEngine &nbsp; &nbsp;naver.com &nbsp; &nbsp; &nbsp; query=</div><div>===================================================================================</div><div><br />
</div><div><br />
</div><div>원하는 경로에 있는&nbsp;webalizer.conf 파일을 바로 적용하는 명령어이다.</div><div><br />
</div></div><div>webalizer -c /etc/webalizer/{도메인명}-webalizer.conf&nbsp;</div><div><br />
</div><div>이거 실행후 http://도메인/webalizer 웹으로 확인하면 됨.</div><div><br />
</div><div>바로 적용하면&nbsp;access_log 가 그닥 없기때문에 바로 통계가 안나온다.</div><div><br />
</div><div>예전기록들을 적용하면 통계가 바로 즉시 적용된다.</div><div><br />
</div><div>/var/log/httpd/access_log 외에도&nbsp;access_log.1&nbsp;access_log.2&nbsp;access_log.3 이런식으로</div><div><br />
</div><div>예전 로그파일들이 있다.</div><div><br />
</div><div>webalizer.conf의 access_log부분을 예전파일들을 읽도록 잡아주고</div><div><br />
</div><div>LogFile &nbsp; &nbsp; &nbsp; &nbsp; /var/log/httpd/도메인-access_log.1</div><div><br />
</div><div>다시한번 실행하여 주면된다.</div><div><br />
</div><div>webalizer -c /etc/webalizer/{도메인명}-webalizer.conf&nbsp;</div><div><br />
</div><div>그리고 마지막에 다시 webalizer.conf 에다가 현재 access_log파일인&nbsp;</div><div><br />
</div><div>LogFile &nbsp; &nbsp; &nbsp; &nbsp; /var/log/httpd/도메인-access_log</div><div><br />
</div><div>로 꼭 변경을 다시 해 줘야된다.</div>			 ]]> 
		</description>
		<category>Linux</category>

		<comments>http://sonhj8.egloos.com/2736828#comments</comments>
		<pubDate>Wed, 04 Nov 2009 05:23:24 GMT</pubDate>
		<dc:creator>베사메무쵸</dc:creator>
	</item>
	<item>
		<title><![CDATA[ 아파치 실제 접속자 수 구하기 ]]> </title>
		<link>http://sonhj8.egloos.com/2736796</link>
		<guid>http://sonhj8.egloos.com/2736796</guid>
		<description>
			<![CDATA[ 
  <p>아파치는 기본 세션으로 5개의&nbsp; 프로세스를 구동하여 1명의 유저를 받아드린다.</p><br><p>프로세스가 100개 떠있으면 100명이 아니라는것이다..</p><br><p>물론 서버마다 설정하기 달렸지만 필자는 모니터링 프로그램을 개발하다가 프로세스체크가 비효율적인것이라 판단되어</p><br><p>&nbsp;</p><br><p><span style="COLOR: #ff0000"><strong>netstat -na |grep :80 |awk '{print $5}' | sed 's/::ffff://g' |awk -F ":" '{print $1}' |sort |uniq |wc -l</strong></span></p><br><p>&nbsp;</p><br><p>위와같은 방식으로 카운팅을 해버렸다.(허용오차 ±3)<br><br>출처 : juunoya</p>			 ]]> 
		</description>
		<category>Linux</category>

		<comments>http://sonhj8.egloos.com/2736796#comments</comments>
		<pubDate>Wed, 04 Nov 2009 04:52:35 GMT</pubDate>
		<dc:creator>베사메무쵸</dc:creator>
	</item>
	<item>
		<title><![CDATA[ 아파치 Redirect 정규표현식 ]]> </title>
		<link>http://sonhj8.egloos.com/2736793</link>
		<guid>http://sonhj8.egloos.com/2736793</guid>
		<description>
			<![CDATA[ 
  <p><br></p><p>한번씩 무조건 주소에 www.도메인 으로 보이게 해달라고 요청하는 사람이 있다.</p><p>첨에 나도 몰라 당황 조금 했었다 ㅋㅋㅋ</p><p><br></p><p><br></p><p>아파치 httpd.conf Redirect&nbsp; </p><br><p><a href="http://aaa.com/">http://aaa.com</a> -&gt; <a href="http://www.aaa.com/">http://www.aaa.com</a> 로 접속하게 하려면 정규표현을 어케해야하나...유...</p><br><p>httpd.conf파일에서 <a href="http://www.aaa.com/">www.aaa.com</a>을 VirtualHost설정 하신후 다른 도메인들은 아래처럼 추가!!<br></p><br><p>&lt;VirtualHost x.x.x.x&gt;<br>ServerName aaa.com<br>RedirectMatch /(.*)$ <a href="http://www.aaa.com/$1">http://www.aaa.com/$1</a><br>#Redirect / <a href="http://www.aaa.com/">http://www.aaa.com/</a><br>&lt;/VirtualHost&gt;<br><br><br><br><br>출처 : juunoya</p>			 ]]> 
		</description>
		<category>Linux</category>

		<comments>http://sonhj8.egloos.com/2736793#comments</comments>
		<pubDate>Wed, 04 Nov 2009 04:50:54 GMT</pubDate>
		<dc:creator>베사메무쵸</dc:creator>
	</item>
	<item>
		<title><![CDATA[ 인생의 굴곡?!ㅋ ]]> </title>
		<link>http://sonhj8.egloos.com/2736782</link>
		<guid>http://sonhj8.egloos.com/2736782</guid>
		<description>
			<![CDATA[ 
  <p><br />
</p><p><br />
</p><p><div style="text-align:center"><img class="image_mid" border="0" onmouseover="this.style.cursor='pointer'" alt="" src="http://pds17.egloos.com/pds/200911/04/90/e0062490_4af1043714e60.jpg" width="500" height="378.488372093" onclick="Control.Modal.openDialog(this, event, 'http://pds17.egloos.com/pds/200911/04/90/e0062490_4af1043714e60.jpg');" /></div></p><p><br />
</p><p>인생의 굴곡이란다;;</p><p>&nbsp;</p><p>일본사이트인데 재미삼아 해봐따 ㅋ</p><p>&nbsp;</p><p>일본이라 이름을 한문으로 넣었는데...</p><p>&nbsp;</p><p>한글로 다시해봐??ㅋㅋㅋ</p><p><br />
</p><p>20대에는 졸라 암울하다가 서서히 올라가네...그러다 급감한다는...;;;</p><p><br />
</p><p>ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ&nbsp;</p><p><br />
</p><p>재미삼아 해보시길 ㅎ</p><p>&nbsp;</p><p><a href="http://uremon.com/life_graph/" target="_blank">http://uremon.com/life_graph/</a></p>			 ]]> 
		</description>
		<category>My Story</category>

		<comments>http://sonhj8.egloos.com/2736782#comments</comments>
		<pubDate>Wed, 04 Nov 2009 04:34:56 GMT</pubDate>
		<dc:creator>베사메무쵸</dc:creator>
	</item>
	<item>
		<title><![CDATA[ 나누미넷배 사장을 웃겨라!!  대상작품 ]]> </title>
		<link>http://sonhj8.egloos.com/2736776</link>
		<guid>http://sonhj8.egloos.com/2736776</guid>
		<description>
			<![CDATA[ 
  <div style="text-align: center;"><br />
</div><div style="text-align: center;">세달 전에 있었던 거지만 올려본다.</div><div style="text-align: center;">상반기를 마무리하며 사장님이 내어준 과제중에 마지막 과제가 사장을 웃겨라!! 였다...</div><div style="text-align: center;">나름 머 재미있게 하려구 포토셥으로 끄적 거려보았다</div><div style="text-align: center;">나의 별명이 곰이기에 컨셉을 곰으로 잡고 !! ㅋㅋㅋ</div><div style="text-align: center;">회식날 대상으로 올라갔고 5만원 상금을 거머쥐었다.</div><div style="text-align: center;"><br />
</div><div style="text-align: center;"><br />
</div><div style="text-align: center;"><br />
</div><div style="text-align:center"><img class="image_mid" border="0" onmouseover="this.style.cursor='pointer'" alt="" src="http://pds16.egloos.com/pds/200911/04/90/e0062490_4af101d0d32e2.jpg" width="500" height="707.258064516" onclick="Control.Modal.openDialog(this, event, 'http://pds16.egloos.com/pds/200911/04/90/e0062490_4af101d0d32e2.jpg');" /></div><div style="text-align:center"><img class="image_mid" border="0" onmouseover="this.style.cursor='pointer'" alt="" src="http://pds16.egloos.com/pds/200911/04/90/e0062490_4af10251a5812.jpg" width="500" height="707.258064516" onclick="Control.Modal.openDialog(this, event, 'http://pds16.egloos.com/pds/200911/04/90/e0062490_4af10251a5812.jpg');" /></div>			 ]]> 
		</description>
		<category>My Story</category>

		<comments>http://sonhj8.egloos.com/2736776#comments</comments>
		<pubDate>Wed, 04 Nov 2009 04:30:13 GMT</pubDate>
		<dc:creator>베사메무쵸</dc:creator>
	</item>
	<item>
		<title><![CDATA[ 리눅스 점검메일 전송하기 ]]> </title>
		<link>http://sonhj8.egloos.com/2729825</link>
		<guid>http://sonhj8.egloos.com/2729825</guid>
		<description>
			<![CDATA[ 
  <p>서버 상태를 다 살필수 없으니 상태를 메일로 보내게 하여 필요한 사항을 체크할 수 있도록 한다.<br />
<br />
이거는 시스템 체크하는거<br />
-----------------------------------------------------------------------------------<br />
#!/bin/sh<br />
echo -e "====================================="<br />
hostname<br />
echo -e "====================================="</p><p>echo -e "\n 1. 오늘날짜:"<br />
date</p><p>echo -e "\n 2. 디스크용량"<br />
df -h</p><p>echo -e "\n 3. 포트점검"<br />
netstat -an | grep LISTEN</p><p>echo -e "\n 4. /tmp점검"<br />
ls -al /tmp</p><p>echo -e "\n 5. /var/tmp점검"<br />
ls -al /var/tmp</p><p>echo -e "\n 6.&nbsp; 큐에쌓인메일수 점검"<br />
ls -l /var/spool/mqueue | wc -l</p><p>echo -e "\n 7. 실행프로세스 점검"<br />
pstree</p><p>echo -e "\n 8. 최후접속자 점검"<br />
lastlog | grep -v "한번도"</p><p>echo -e "\n 9. Memory"<br />
free</p><p>echo -e "\n 10. Uptime"<br />
uptime</p><p>echo -e "\n 11. faillog"<br />
faillog<br />
----------------------------------------------------------------------------------<br />
<br />
</p><p>요 내용을 바로 cron으로 스케줄을 걸어 메일로 전송하기.<br />
<br />
</p><p>파일을 /etc/cron.d/ 와 같은 원하는 경로에 위치시키고 실행권한을 넣는다.</p><p>예를 들면 &nbsp;chmod 755 와 같이,</p><p><br />
그리고 vi /etc/crontab 에서 다음과 같이 메일 발송 스케줄을 잡아준다. (crontab -e 명령어를 통해서 입력하여도 됨.)</p><p><br />
00 06 * * * `/경로/system_check.sh | mail -s "메일제목" <a href="mailto:메일주소@hyukjinworld.com">메일주소@hyukjinworld.com</a>`<br />
<br />
<br />
<br />
<br />
</p>			 ]]> 
		</description>
		<category>Linux</category>

		<comments>http://sonhj8.egloos.com/2729825#comments</comments>
		<pubDate>Thu, 29 Oct 2009 05:37:47 GMT</pubDate>
		<dc:creator>베사메무쵸</dc:creator>
	</item>
	<item>
		<title><![CDATA[ yum-repo ]]> </title>
		<link>http://sonhj8.egloos.com/2658590</link>
		<guid>http://sonhj8.egloos.com/2658590</guid>
		<description>
			<![CDATA[ 
  &nbsp;rpm -Uvh <a href="http://download.fedora.redhat.com/pub/epel/4/i386/epel-release-4-9.noarch.rpm">http://download.fedora.redhat.com/pub/epel/4/i386/epel-release-4-9.noarch.rpm</a>			 ]]> 
		</description>
		<category>Linux</category>

		<comments>http://sonhj8.egloos.com/2658590#comments</comments>
		<pubDate>Fri, 16 Oct 2009 16:45:43 GMT</pubDate>
		<dc:creator>베사메무쵸</dc:creator>
	</item>
	<item>
		<title><![CDATA[ 파일에 특정라인 삭제 스크립트 ]]> </title>
		<link>http://sonhj8.egloos.com/2545509</link>
		<guid>http://sonhj8.egloos.com/2545509</guid>
		<description>
			<![CDATA[ 
  <p><br><br>#!/bin/bash<br>DIR=/home/admin/db&nbsp;&nbsp; #파일 경로<br>cd $DIR<br><br>for i in *-NEW.sql;<br><br>do<br><br>j=`ls $i | cut -d- -f1`&nbsp;&nbsp; # 파일의 특정 앞부분만 잘라냄<br><br>#echo $j<br><br>sed -e '4d' ${i} &gt; ${j}-NEW2.sql&nbsp; # 파일내용중 4번라인 삭제후 다른이름으로 저장됨</p><p><br>done<br></p>			 ]]> 
		</description>
		<category>shell script</category>

		<comments>http://sonhj8.egloos.com/2545509#comments</comments>
		<pubDate>Tue, 06 Oct 2009 12:24:19 GMT</pubDate>
		<dc:creator>베사메무쵸</dc:creator>
	</item>
</channel>
</rss>
