<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>

<channel>
	<title>C1G军火库</title>
	<atom:link href="http://blog.c1gstudio.com/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.c1gstudio.com</link>
	<description>关注互联网、网页设计、Web开发、服务器运维优化、项目管理、网站运营...</description>
	<pubDate>Fri, 12 Mar 2010 07:53:17 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>使用Oracle JRockit 提高tomcat性能</title>
		<link>http://blog.c1gstudio.com/archives/954</link>
		<comments>http://blog.c1gstudio.com/archives/954#comments</comments>
		<pubDate>Tue, 09 Mar 2010 05:07:24 +0000</pubDate>
		<dc:creator>C1G</dc:creator>
		
		<category><![CDATA[Tomcat]]></category>

		<category><![CDATA[技术]]></category>

		<category><![CDATA[jrockit]]></category>

		<category><![CDATA[tomcat]]></category>

		<guid isPermaLink="false">http://blog.c1gstudio.com/?p=954</guid>
		<description><![CDATA[http://www.oracle.com/technology/software/products/jrockit/index.html
这里选择Oracle JRockit Real Time 3.1.2 for Java version 61 Linux x86-64 大概121M
http://download.oracle.com/otn/bea/jrockit/jrrt-3.1.2-1.6.0-linux-x64.bin
必需要登录后才能下载，wget不好使，用windows下载后再传到服务器上。
chmod u+x jrrt-3.1.2-1.6.0-linux-x64.bin
./jrrt-3.1.2-1.6.0-linux-x64.bin
根据提示一步步安装。
我安装在/usr/jrrt-3.1.2-1.6.0 目录下，做个软连接到/usr/jrrt
ln -s /usr/jrrt-3.1.2-1.6.0 /usr/jrrt
修改环境变量，如果之前有设置，只需修改JAVA_HOME到新路径
vi /etc/profile
#set for j2sdk 
　　JAVA_HOME=/usr/jrrt 
　　export JAVA_HOME 
　　CLASSPATH=$JAVA_HOME/jre/lib/ext/jcert.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/jpda.jar:$JAVA_HOME/lib/tools.jar 
　　export CLASSPATH 
　　PATH=.:$PATH:$JAVA_HOME/bin:$JAVA_HOME/jre/bin 
　　export PATH
关闭tomcat
source /etc/profile
启动tomcat，完成
参考:
http://javaworld.org.ru/java_2344.html
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.oracle.com/technology/software/products/jrockit/index.html">http://www.oracle.com/technology/software/products/jrockit/index.html</a></p>
<p>这里选择Oracle JRockit Real Time 3.1.2 for Java version 6<strong><sup>1 </sup></strong>Linux x86-64 大概121M</p>
<p><a href="http://download.oracle.com/otn/bea/jrockit/jrrt-3.1.2-1.6.0-linux-x64.bin">http://download.oracle.com/otn/bea/jrockit/jrrt-3.1.2-1.6.0-linux-x64.bin</a></p>
<p>必需要登录后才能下载，wget不好使，用windows下载后再传到服务器上。</p>
<p>chmod u+x jrrt-3.1.2-1.6.0-linux-x64.bin<br />
./jrrt-3.1.2-1.6.0-linux-x64.bin<br />
根据提示一步步安装。<br />
我安装在/usr/jrrt-3.1.2-1.6.0 目录下，做个软连接到/usr/jrrt<br />
ln -s /usr/jrrt-3.1.2-1.6.0 /usr/jrrt</p>
<p>修改环境变量，如果之前有设置，只需修改JAVA_HOME到新路径<br />
vi /etc/profile</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">#set for j2sdk </li>
<li>　　JAVA_HOME=/usr/jrrt </li>
<li>　　export JAVA_HOME </li>
<li>　　CLASSPATH=$JAVA_HOME/jre/lib/ext/jcert.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/jpda.jar:$JAVA_HOME/lib/tools.jar </li>
<li>　　export CLASSPATH </li>
<li>　　PATH=.:$PATH:$JAVA_HOME/bin:$JAVA_HOME/jre/bin </li>
<li>　　export PATH</li></ol></div>
<p>关闭tomcat<br />
source /etc/profile<br />
启动tomcat，完成</p>
<p>参考:<br />
http://javaworld.org.ru/java_2344.html</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.c1gstudio.com/archives/954/feed</wfw:commentRss>
		</item>
		<item>
		<title>Red Hat Certified Engineer (RHCE)</title>
		<link>http://blog.c1gstudio.com/archives/952</link>
		<comments>http://blog.c1gstudio.com/archives/952#comments</comments>
		<pubDate>Thu, 04 Mar 2010 07:42:37 +0000</pubDate>
		<dc:creator>C1G</dc:creator>
		
		<category><![CDATA[RHCE&RHCA]]></category>

		<category><![CDATA[技术]]></category>

		<category><![CDATA[rhce]]></category>

		<guid isPermaLink="false">http://blog.c1gstudio.com/?p=952</guid>
		<description><![CDATA[ 
Exam Preparation



Courses you should take:
Level of Linux Expertise:


None
Some
Much
Expert


Standard Track *
Rapid Track **




RH033 Red Hat Linux Essentials
yes
 
 
 


RH131 Red Hat System Administration
or
RH133 Red Hat Linux Administration (and RHCT Exam)
yes
yes
 
 


RH253 Red Hat Linux Networking and Security Administration
yes
yes
 
 


RH300 Red Hat Rapid Track Course (and RHCE Exam)
 
 
yes
 


RH302 RHCE Exam
yes
yes
 
yes



http://www.redhat.com/certification/rhce/
]]></description>
			<content:encoded><![CDATA[<p> </p>
<h3>Exam Preparation</h3>
<table class="certTracks" border="0" cellspacing="3">
<thead>
<tr>
<th class="thisCourse" style="width: 50%;" rowspan="3">Courses you should take:</th>
<th class="thisCourse" style="width: 50%;" colspan="4">Level of Linux Expertise:</th>
</tr>
<tr>
<th>None</th>
<th>Some</th>
<th>Much</th>
<th>Expert</th>
</tr>
<tr>
<th class="rhceCel" colspan="2">Standard Track *</th>
<th class="rhctCel" colspan="2">Rapid Track **</th>
</tr>
</thead>
<tbody>
<tr>
<th>RH033 <a href="http://blog.c1gstudio.com/courses/rh033_red_hat_linux_essentials/">Red Hat Linux Essentials</a></th>
<td class="rhceCel">yes</td>
<td class="rhceCel"> </td>
<td class="rhctCel"> </td>
<td class="rhctCel"> </td>
</tr>
<tr>
<th>RH131 <a href="http://blog.c1gstudio.com/courses/rh131_red_hat_linux_system_administration/">Red Hat System Administration</a><br />
or<br />
RH133 <a href="http://blog.c1gstudio.com/courses/rh133_red_hat_linux_system_administration_and_rhct_exam/">Red Hat Linux Administration (and RHCT Exam)</a></th>
<td class="rhceCel">yes</td>
<td class="rhceCel">yes</td>
<td class="rhctCel"> </td>
<td class="rhctCel"> </td>
</tr>
<tr>
<th>RH253 <a href="http://blog.c1gstudio.com/courses/rh253_red_hat_linux_networking_and_security_administration/">Red Hat Linux Networking and Security Administration</a></th>
<td class="rhceCel">yes</td>
<td class="rhceCel">yes</td>
<td class="rhctCel"> </td>
<td class="rhctCel"> </td>
</tr>
<tr>
<th>RH300 <a href="http://blog.c1gstudio.com/courses/rh300_rhce_rapid_track_course_and_rhce_exam/">Red Hat Rapid Track Course (and RHCE Exam)</a></th>
<td class="rhceCel"> </td>
<td class="rhceCel"> </td>
<td class="rhctCel">yes</td>
<td class="rhctCel"> </td>
</tr>
<tr>
<th>RH302 <a href="http://blog.c1gstudio.com/courses/rh302_rhce_exam/">RHCE Exam</a></th>
<td class="rhceCel">yes</td>
<td class="rhceCel">yes</td>
<td class="rhctCel"> </td>
<td class="rhctCel">yes</td>
</tr>
</tbody>
</table>
<p><a href="http://www.redhat.com/certification/rhce/">http://www.redhat.com/certification/rhce/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.c1gstudio.com/archives/952/feed</wfw:commentRss>
		</item>
		<item>
		<title>The RHCSS, RHCDS &amp; RHCA Exam Prep Guides are now available on the web.</title>
		<link>http://blog.c1gstudio.com/archives/948</link>
		<comments>http://blog.c1gstudio.com/archives/948#comments</comments>
		<pubDate>Thu, 04 Mar 2010 07:32:54 +0000</pubDate>
		<dc:creator>C1G</dc:creator>
		
		<category><![CDATA[RHCE&RHCA]]></category>

		<category><![CDATA[RHCA]]></category>

		<category><![CDATA[rhcds]]></category>

		<category><![CDATA[rhcss]]></category>

		<guid isPermaLink="false">http://blog.c1gstudio.com/?p=948</guid>
		<description><![CDATA[ 
RHCSS Prep Guide URLs:
https://www.redhat.com/certification/ex333/prep_guide/
https://www.redhat.com/certification/ex423/prep_guide/
https://www.redhat.com/certification/ex429/prep_guide/
RHCDS Prep Guide URLs:
https://www.redhat.com/certification/ex401/prep_guide/
https://www.redhat.com/certification/ex423/prep_guide/
https://www.redhat.com/certification/ex436/prep_guide/
RHCA Prep Guide URLs:
https://www.redhat.com/certification/ex333/prep_guide/
https://www.redhat.com/certification/ex401/prep_guide/
https://www.redhat.com/certification/ex423/prep_guide/
https://www.redhat.com/certification/ex436/prep_guide/
https://www.redhat.com/certification/ex442/prep_guide/
Course Outline
rh436 https://www.redhat.com/courses/rh436_red_hat_enterprise_clustering_and_s...
rh333 https://www.redhat.com/courses/rhs333_red_hat_enterprise_security_networ...
rh410 https://www.redhat.com/courses/rh401_red_hat_enterprise_deployment_virtu...
rh423 https://www.redhat.com/courses/rh423_red_hat_enterprise_directory_servic...
rh442 https://www.redhat.com/courses/rh442_red_hat_enterprise_system_monitorin...
]]></description>
			<content:encoded><![CDATA[<p> </p>
<p>RHCSS Prep Guide URLs:<br />
<a title="https://www.redhat.com/certification/ex333/prep_guide/" href="https://www.redhat.com/certification/ex333/prep_guide/">https://www.redhat.com/certification/ex333/prep_guide/</a><br />
<a title="https://www.redhat.com/certification/ex423/prep_guide/" href="https://www.redhat.com/certification/ex423/prep_guide/">https://www.redhat.com/certification/ex423/prep_guide/</a><br />
<a title="https://www.redhat.com/certification/ex429/prep_guide/" href="https://www.redhat.com/certification/ex429/prep_guide/">https://www.redhat.com/certification/ex429/prep_guide/</a></p>
<p>RHCDS Prep Guide URLs:<br />
<a title="https://www.redhat.com/certification/ex401/prep_guide/" href="https://www.redhat.com/certification/ex401/prep_guide/">https://www.redhat.com/certification/ex401/prep_guide/</a><br />
<a title="https://www.redhat.com/certification/ex423/prep_guide/" href="https://www.redhat.com/certification/ex423/prep_guide/">https://www.redhat.com/certification/ex423/prep_guide/</a><br />
<a title="https://www.redhat.com/certification/ex436/prep_guide/" href="https://www.redhat.com/certification/ex436/prep_guide/">https://www.redhat.com/certification/ex436/prep_guide/</a></p>
<p>RHCA Prep Guide URLs:<br />
<a title="https://www.redhat.com/certification/ex333/prep_guide/" href="https://www.redhat.com/certification/ex333/prep_guide/">https://www.redhat.com/certification/ex333/prep_guide/</a><br />
<a title="https://www.redhat.com/certification/ex401/prep_guide/" href="https://www.redhat.com/certification/ex401/prep_guide/">https://www.redhat.com/certification/ex401/prep_guide/</a><br />
<a title="https://www.redhat.com/certification/ex423/prep_guide/" href="https://www.redhat.com/certification/ex423/prep_guide/">https://www.redhat.com/certification/ex423/prep_guide/</a><br />
<a title="https://www.redhat.com/certification/ex436/prep_guide/" href="https://www.redhat.com/certification/ex436/prep_guide/">https://www.redhat.com/certification/ex436/prep_guide/</a><br />
<a title="https://www.redhat.com/certification/ex442/prep_guide/" href="https://www.redhat.com/certification/ex442/prep_guide/">https://www.redhat.com/certification/ex442/prep_guide/</a></p>
<p>Course Outline</p>
<p>rh436 <a title="https://www.redhat.com/courses/rh436_red_hat_enterprise_clustering_and_storage_management/details/" href="https://www.redhat.com/courses/rh436_red_hat_enterprise_clustering_and_storage_management/details/">https://www.redhat.com/courses/rh436_red_hat_enterprise_clustering_and_s...</a><br />
rh333 <a title="https://www.redhat.com/courses/rhs333_red_hat_enterprise_security_network_services/details/" href="https://www.redhat.com/courses/rhs333_red_hat_enterprise_security_network_services/details/">https://www.redhat.com/courses/rhs333_red_hat_enterprise_security_networ...</a><br />
rh410 <a title="https://www.redhat.com/courses/rh401_red_hat_enterprise_deployment_virtualization_and_systems_management/details/" href="https://www.redhat.com/courses/rh401_red_hat_enterprise_deployment_virtualization_and_systems_management/details/">https://www.redhat.com/courses/rh401_red_hat_enterprise_deployment_virtu...</a><br />
rh423 <a title="https://www.redhat.com/courses/rh423_red_hat_enterprise_directory_services_and_authentication/details/" href="https://www.redhat.com/courses/rh423_red_hat_enterprise_directory_services_and_authentication/details/">https://www.redhat.com/courses/rh423_red_hat_enterprise_directory_servic...</a><br />
rh442 <a title="https://www.redhat.com/courses/rh442_red_hat_enterprise_system_monitoring_and_performance_tuning/details/" href="https://www.redhat.com/courses/rh442_red_hat_enterprise_system_monitoring_and_performance_tuning/details/">https://www.redhat.com/courses/rh442_red_hat_enterprise_system_monitorin...</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.c1gstudio.com/archives/948/feed</wfw:commentRss>
		</item>
		<item>
		<title>TinyMCE中只对部分Textarea起作用</title>
		<link>http://blog.c1gstudio.com/archives/946</link>
		<comments>http://blog.c1gstudio.com/archives/946#comments</comments>
		<pubDate>Thu, 04 Mar 2010 07:28:54 +0000</pubDate>
		<dc:creator>C1G</dc:creator>
		
		<category><![CDATA[JavaScript/DOM/XML]]></category>

		<category><![CDATA[技术]]></category>

		<category><![CDATA[tinymce]]></category>

		<guid isPermaLink="false">http://blog.c1gstudio.com/?p=946</guid>
		<description><![CDATA[方法一：mode与elements是搭配使用
mode与elements是搭配使用的，用来指定渲染name在elements中的HTML元素为TinyMCE编辑器（可以是DIV或者Textarea），比如：
mode : "exact",elements : "example_textarea"
也可以单独用 mode : "textareas",这样页面中所有的Textarea元素都会被渲染。
tinyMCE.init({
mode : &#34;exact&#34;,
elements : &#34;example_textarea&#34;,
});
方法二：选项editor_selector和editor_deselector
这个选项指定一个CSS class 名，当textarea要被转换时需要。它让你通过在属性中增加CSS class 名选择特定的 textareas 转换。如果选项没有被设值，这个选项不会有任何作用。而由 mode 来指定要转换的textarea。如果你想要转换所有的编辑器，而排除特定的编辑器，请查看 editor_deselector 选项。
editor_selector 选项的使用示例：
tinyMCE.init({
&#160;&#160; &#160; &#160; &#160;...
&#160;&#160; &#160; &#160; &#160;editor_selector : &#34;mceEditor&#34;
});
在 HTML 中的使用示例：
&#60;textarea id=&#34;myarea1&#34; class=&#34;mceEditor&#34;&#62;This will be a editor.&#60;/textarea&#62;
&#60;textarea id=&#34;myarea2&#34;&#62;This will NOT be a editor.&#60;/textarea&#62;
选项：editor_deselector
这个选项指定一个 CSS class 名，这样就不会将含有该class名的 textareas 转换成编辑器实例。如果没有设任何值，这个选项没有任何作用。而是由mode 选项来指定要转换的 textarea。 选项的默认值是 "mceNoEditor"，因此如果将 mceNoEditor [...]]]></description>
			<content:encoded><![CDATA[<p><strong>方法一：mode与elements是搭配使用</strong></p>
<p>mode与elements是搭配使用的，用来指定渲染name在elements中的HTML元素为TinyMCE编辑器（可以是DIV或者Textarea），比如：<br />
mode : "exact",elements : "example_textarea"<br />
也可以单独用 mode : "textareas",这样页面中所有的Textarea元素都会被渲染。</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">tinyMCE.init({</li>
<li>mode : &quot;exact&quot;,</li>
<li>elements : &quot;example_textarea&quot;,</li>
<li>});</li></ol></div>
<p><strong>方法二：选项editor_selector和editor_deselector</strong></p>
<p>这个选项指定一个CSS class 名，当textarea要被转换时需要。它让你通过在属性中增加CSS class 名选择特定的 textareas 转换。如果选项没有被设值，这个选项不会有任何作用。而由 mode 来指定要转换的textarea。如果你想要转换所有的编辑器，而排除特定的编辑器，请查看 editor_deselector 选项。</p>
<p>editor_selector 选项的使用示例：</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">tinyMCE.init({</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;...</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;editor_selector : &quot;mceEditor&quot;</li>
<li>});</li></ol></div>
<p>在 HTML 中的使用示例：</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">&lt;textarea id=&quot;myarea1&quot; class=&quot;mceEditor&quot;&gt;This will be a editor.&lt;/textarea&gt;</li>
<li>&lt;textarea id=&quot;myarea2&quot;&gt;This will NOT be a editor.&lt;/textarea&gt;</li></ol></div>
<p>选项：editor_deselector</p>
<p>这个选项指定一个 CSS class 名，这样就不会将含有该class名的 textareas 转换成编辑器实例。如果没有设任何值，这个选项没有任何作用。而是由mode 选项来指定要转换的 textarea。 选项的默认值是 "mceNoEditor"，因此如果将 mceNoEditor 加入一个 textarea 的 class 属性中，这个 textarea 则不会被转换。</p>
<p>editor_deselector 选项的使用示例：</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">tinyMCE.init({</li>
<li>...</li>
<li>editor_deselector : &quot;mceNoEditor&quot;</li>
<li>});</li></ol></div>
<p>在 HTML 中的使用示例：</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">&lt;textarea id=&quot;myarea1&quot; class=&quot;mceNoEditor&quot;&gt;This will be a NOT be a editor.&lt;/textarea&gt;</li>
<li>&lt;textarea id=&quot;myarea2&quot;&gt;This will be a editor.&lt;/textarea&gt;</li></ol></div>
<p>参考:<br />
http://www.visame.org/entry/12016/</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.c1gstudio.com/archives/946/feed</wfw:commentRss>
		</item>
		<item>
		<title>去除/var/log/messages中crond信息</title>
		<link>http://blog.c1gstudio.com/archives/943</link>
		<comments>http://blog.c1gstudio.com/archives/943#comments</comments>
		<pubDate>Thu, 04 Mar 2010 06:52:06 +0000</pubDate>
		<dc:creator>C1G</dc:creator>
		
		<category><![CDATA[linux 维护优化]]></category>

		<category><![CDATA[技术]]></category>

		<category><![CDATA[crond]]></category>

		<category><![CDATA[syslog]]></category>

		<guid isPermaLink="false">http://blog.c1gstudio.com/?p=943</guid>
		<description><![CDATA[messages含有过多的crond重复信息，影响阅读
tail /var/log/messages
Mar&#160; 4 14:18:01 localhost crond(pam_unix)[625]: session opened for user root by (uid=0)
Mar&#160; 4 14:18:01 localhost crond[626]: (root) CMD (/bin/sh /opt/shell/session_gc.sh &#62; /dev/null 2&#62;&#38;1)
Mar&#160; 4 14:18:01 localhost crond(pam_unix)[625]: session closed for user root
Mar&#160; 4 14:19:01 localhost crond(pam_unix)[761]: session opened for user root by (uid=0)
Mar&#160; 4 14:19:01 localhost crond[762]: (root) CMD (/bin/sh /opt/shell/session_gc.sh &#62; /dev/null 2&#62;&#38;1)
Mar&#160; [...]]]></description>
			<content:encoded><![CDATA[<p>messages含有过多的crond重复信息，影响阅读</p>
<p>tail /var/log/messages</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">Mar&nbsp; 4 14:18:01 localhost crond(pam_unix)[625]: session opened for user root by (uid=0)</li>
<li>Mar&nbsp; 4 14:18:01 localhost crond[626]: (root) CMD (/bin/sh /opt/shell/session_gc.sh &gt; /dev/null 2&gt;&amp;1)</li>
<li>Mar&nbsp; 4 14:18:01 localhost crond(pam_unix)[625]: session closed for user root</li>
<li>Mar&nbsp; 4 14:19:01 localhost crond(pam_unix)[761]: session opened for user root by (uid=0)</li>
<li>Mar&nbsp; 4 14:19:01 localhost crond[762]: (root) CMD (/bin/sh /opt/shell/session_gc.sh &gt; /dev/null 2&gt;&amp;1)</li>
<li>Mar&nbsp; 4 14:19:01 localhost crond(pam_unix)[761]: session closed for user root</li>
<li>Mar&nbsp; 4 14:20:01 localhost crond(pam_unix)[1172]: session opened for user root by (uid=0)</li>
<li>Mar&nbsp; 4 14:20:01 localhost crond[1174]: (root) CMD (if [ -x /usr/bin/vnstat ] &amp;&amp; [ `ls /var/lib/vnstat/ | wc -l` -ge 1 ]; then /usr/bin/vnstat -u; fi)</li>
<li>Mar&nbsp; 4 14:20:01 localhost crond(pam_unix)[1173]: session opened for user root by (uid=0)</li>
<li>Mar&nbsp; 4 14:20:01 localhost crond[1175]: (root) CMD (/bin/sh /opt/shell/session_gc.sh &gt; /dev/null 2&gt;&amp;1)</li></ol></div>
<p>修改syslog.conf,在messages的输出中增加cron.none;auth.none<br />
cron和认证信息可以在/var/log/secure和/var/log/cron中查看<br />
vi /etc/syslog.conf</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">*.info;mail.none;authpriv.none;cron.none;auth.none&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; /var/log/messages</li></ol></div>
<p>重启服务<br />
/etc/init.d/crond restart</p>
<p>参考:<br />
 http://www.chinarhcx.com/node/7</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.c1gstudio.com/archives/943/feed</wfw:commentRss>
		</item>
		<item>
		<title>Java虚拟机的最大内存限制</title>
		<link>http://blog.c1gstudio.com/archives/941</link>
		<comments>http://blog.c1gstudio.com/archives/941#comments</comments>
		<pubDate>Wed, 03 Mar 2010 08:48:26 +0000</pubDate>
		<dc:creator>C1G</dc:creator>
		
		<category><![CDATA[Tomcat]]></category>

		<category><![CDATA[技术]]></category>

		<category><![CDATA[tomcat]]></category>

		<category><![CDATA[内存]]></category>

		<guid isPermaLink="false">http://blog.c1gstudio.com/?p=941</guid>
		<description><![CDATA[tomcat有内存限制，增加内存后可能会起不来.
tail /opt/tomcat/logs/catalina.out
Could not create the Java virtual machine.
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
反复调试到3650M可以起来
CATALINA_OPTS='-Xms2800m -Xmx3650m'
JAVA_OPTS='-Xms2800m -Xmx3650m
系统环境
centos5.2 64bit
8G mem
2G swap
java version "1.6.0"
OpenJDK  Runtime Environment (build [...]]]></description>
			<content:encoded><![CDATA[<p>tomcat有内存限制，增加内存后可能会起不来.</p>
<p>tail /opt/tomcat/logs/catalina.out</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">Could not create the Java virtual machine.</li>
<li>Error occurred during initialization of VM</li>
<li>Could not reserve enough space for object heap</li>
<li>Could not create the Java virtual machine.</li>
<li>Error occurred during initialization of VM</li>
<li>Could not reserve enough space for object heap</li>
<li>Could not create the Java virtual machine.</li></ol></div>
<p>反复调试到3650M可以起来</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">CATALINA_OPTS='-Xms2800m -Xmx3650m'</li>
<li>JAVA_OPTS='-Xms2800m -Xmx3650m</li></ol></div>
<p>系统环境<br />
centos5.2 64bit<br />
8G mem<br />
2G swap</p>
<p>java version "1.6.0"<br />
OpenJDK  Runtime Environment (build 1.6.0-b09)<br />
OpenJDK 64-Bit Server VM (build 1.6.0-b09, mixed mode)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.c1gstudio.com/archives/941/feed</wfw:commentRss>
		</item>
		<item>
		<title>linux下查看硬盘型号等信息</title>
		<link>http://blog.c1gstudio.com/archives/939</link>
		<comments>http://blog.c1gstudio.com/archives/939#comments</comments>
		<pubDate>Mon, 01 Mar 2010 02:57:12 +0000</pubDate>
		<dc:creator>C1G</dc:creator>
		
		<category><![CDATA[linux 维护优化]]></category>

		<category><![CDATA[技术]]></category>

		<category><![CDATA[硬盘]]></category>

		<guid isPermaLink="false">http://blog.c1gstudio.com/?p=939</guid>
		<description><![CDATA[在准备替换或加装硬盘时，如何得到硬盘信息？
可以用smartctl,hdparm等命令来查询。 
在日志中显示硬盘有坏扇区
tail /var/log/messages
Mar&#160; 1 09:42:55 c1g smartd[1848]: Device: /dev/hda, 2 Currently unreadable (pending) sectors 
Mar&#160; 1 09:42:55 c1g smartd[1848]: Device: /dev/hda, 2 Offline uncorrectable sectors
dmesg中也有错误信息
dmesg
ide: failed opcode was: unknown
hda: no DRQ after issuing WRITE
ide0: reset: success
hda: status timeout: status=0xd0 { Busy }
对硬盘做一下健康检查
smartctl -H /dev/hda
smartctl version 5.33 [i386-redhat-linux-gnu] Copyright (C) 2002-4 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
&#160;
=== [...]]]></description>
			<content:encoded><![CDATA[<p><strong>在准备替换或加装硬盘时，如何得到硬盘信息？</strong><br />
可以用smartctl,hdparm等命令来查询。 </p>
<p>在日志中显示硬盘有坏扇区<br />
tail /var/log/messages</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">Mar&nbsp; 1 09:42:55 c1g smartd[1848]: Device: /dev/hda, 2 Currently unreadable (pending) sectors </li>
<li>Mar&nbsp; 1 09:42:55 c1g smartd[1848]: Device: /dev/hda, 2 Offline uncorrectable sectors</li></ol></div>
<p>dmesg中也有错误信息<br />
dmesg</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">ide: failed opcode was: unknown</li>
<li>hda: no DRQ after issuing WRITE</li>
<li>ide0: reset: success</li>
<li>hda: status timeout: status=0xd0 { Busy }</li></ol></div>
<p>对硬盘做一下健康检查<br />
smartctl -H /dev/hda</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">smartctl version 5.33 [i386-redhat-linux-gnu] Copyright (C) 2002-4 Bruce Allen</li>
<li>Home page is http://smartmontools.sourceforge.net/</li>
<li>&nbsp;</li>
<li>=== START OF READ SMART DATA SECTION ===</li>
<li>SMART overall-health self-assessment test result: PASSED</li></ol></div>
<p>检测通过，保险起见还是准备换硬盘。<br />
查看下当前硬盘的型号,可以得到硬盘接口为SATAII，及尺寸大小3.5"<br />
smartctl -a /dev/hda</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">smartctl version 5.33 [i386-redhat-linux-gnu] Copyright (C) 2002-4 Bruce Allen</li>
<li>Home page is http://smartmontools.sourceforge.net/</li>
<li>&nbsp;</li>
<li>=== START OF INFORMATION SECTION ===</li>
<li>Device Model:&nbsp; &nbsp; &nbsp;ST3160815AS</li>
<li>Serial Number:&nbsp; &nbsp; 6RA7DWM4</li>
<li>Firmware Version: 4.AAB</li>
<li>User Capacity:&nbsp; &nbsp; 160,040,803,840 bytes</li>
<li>Device is:&nbsp; &nbsp; &nbsp; &nbsp; Not in smartctl database [for details use: -P showall]</li>
<li>ATA Version is:&nbsp; &nbsp;7</li>
<li>ATA Standard is:&nbsp; Exact ATA specification draft version not indicated</li>
<li>Local Time is:&nbsp; &nbsp; Mon Mar&nbsp; 1 10:36:55 2010 CST</li>
<li>SMART support is: Available - device has SMART capability.</li>
<li>SMART support is: Enabled</li>
<li>&nbsp;</li>
<li>=== START OF READ SMART DATA SECTION ===</li>
<li>SMART overall-health self-assessment test result: PASSED</li></ol></div>
<p>hdparm也可以得到硬盘型号<br />
hdparm -i /dev/hda</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">/dev/hda:</li>
<li>&nbsp;</li>
<li>&nbsp;Model=ST3160815AS, FwRev=4.AAB, SerialNo=6RA7DWM4</li>
<li>&nbsp;Config={ HardSect NotMFM HdSw&gt;15uSec Fixed DTR&gt;10Mbs RotSpdTol&gt;.5% }</li>
<li>&nbsp;RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4</li>
<li>&nbsp;BuffType=unknown, BuffSize=8192kB, MaxMultSect=16, MultSect=off</li>
<li>&nbsp;CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=268435455</li>
<li>&nbsp;IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}</li>
<li>&nbsp;PIO modes:&nbsp; pio0 pio1 pio2 pio3 pio4 </li>
<li>&nbsp;DMA modes:&nbsp; mdma0 mdma1 mdma2 </li>
<li>&nbsp;UDMA modes: udma0 udma1 udma2 </li>
<li>&nbsp;AdvancedPM=no WriteCache=enabled</li>
<li>&nbsp;Drive conforms to: device does not report version: </li>
<li>&nbsp;</li>
<li>&nbsp;* signifies the current active mode</li></ol></div>
<p>也可以通过主板型号来得知支持的硬盘<br />
 dmidecode</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">System Information</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Manufacturer: Gigabyte Technology Co., Ltd.</li>
<li>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Product Name: 945GCM-S2L</li></ol></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.c1gstudio.com/archives/939/feed</wfw:commentRss>
		</item>
		<item>
		<title>如何确认处理器是否支持xen虚拟化</title>
		<link>http://blog.c1gstudio.com/archives/936</link>
		<comments>http://blog.c1gstudio.com/archives/936#comments</comments>
		<pubDate>Thu, 25 Feb 2010 05:43:52 +0000</pubDate>
		<dc:creator>C1G</dc:creator>
		
		<category><![CDATA[技术]]></category>

		<category><![CDATA[虚似化]]></category>

		<category><![CDATA[虚拟化]]></category>

		<category><![CDATA[kvm]]></category>

		<category><![CDATA[xen]]></category>

		<guid isPermaLink="false">http://blog.c1gstudio.com/?p=936</guid>
		<description><![CDATA[半虚似化要求 (Para-virtualization) 
64位cpu都支持，32位cpu需支持(PAE)
以Intel (R) Pentium(R)  Dual  CPU  E2140  @ 1.60GHz为例
cat /proc/cpuinfo &#124; grep flags
flags&#160; &#160; &#160; &#160; &#160; &#160;: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm pni monitor [...]]]></description>
			<content:encoded><![CDATA[<p><strong>半虚似化要求 (Para-virtualization) </strong><br />
64位cpu都支持，32位cpu需支持(PAE)<br />
以Intel (R) Pentium(R)  Dual  CPU  E2140  @ 1.60GHz为例</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">cat /proc/cpuinfo | grep flags</li>
<li>flags&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm pni monitor ds_cpl est tm2 xtpr</li></ol></div>
<p>以上包含了pae</p>
<p><strong>全虚似化要求(Fully-virtualization) </strong><br />
需Intel VT(vmx)和AMD’s AMD-V(svm)功能<br />
以Intel  Xeon  CPU           E5504  @ 2.00GHz为例</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">cat /proc/cpuinfo |grep flags</li>
<li>flags&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx rdtscp lm constant_tsc pni monitor ds_cpl vmx est tm2 cx16 xtpr popcnt lahf_lm</li></ol></div>
<p>包含了pae及vmx</p>
<p>注:<br />
    .一些厂商禁止了机器BIOS中的VT选项, 这种方式下VT不能被重新打开.<br />
./proc/cpuinfo仅从Linux 2.6.15(Intel)和Linux 2.6.16(AMD)开始显示虚拟化方面的信息. 请使用uname -r命令查询您的内核版本.</p>
<p>参考:<br />
http://linux.vbird.org/linux_enterprise/xen.php</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.c1gstudio.com/archives/936/feed</wfw:commentRss>
		</item>
		<item>
		<title>KVM虚拟化常见问题</title>
		<link>http://blog.c1gstudio.com/archives/934</link>
		<comments>http://blog.c1gstudio.com/archives/934#comments</comments>
		<pubDate>Thu, 25 Feb 2010 05:32:27 +0000</pubDate>
		<dc:creator>C1G</dc:creator>
		
		<category><![CDATA[虚似化]]></category>

		<category><![CDATA[虚拟化]]></category>

		<category><![CDATA[kvm]]></category>

		<guid isPermaLink="false">http://blog.c1gstudio.com/?p=934</guid>
		<description><![CDATA[你将需要一台运行最新linux内核的Intel处理器(含VT虚拟化技术)或AMD处理器(含SVM安全虚拟机技术的AMD处理器, 也叫AMD-V).
     什么是Intel VT/AMD-V?
      Intel VT和AMD’s AMD-V是一套与支持该技术的虚拟机监视器相结合的硬件增强特性(指令集扩展). kvm可在原始硬件速度下通过运行完全隔离的虚拟机来执行任务.
      如何确认处理器含有Intel VT或AMD-V技术?
      在最新的Linux内核下运行:
     egrep ‘^flags.*(vmx&#124;svm)’ /proc/cpuinfo
      如有显示, 您的处理器具有VT功能. 你也可以通过厂商网站查询处理器型号的名称(在/proc/cpuinfo).
     注:
    .一些厂商禁止了机器BIOS中的VT选项, 这种方式下VT不能被重新打开.
./proc/cpuinfo仅从Linux 2.6.15(Intel)和Linux 2.6.16(AMD)开始显示虚拟化方面的信息. 请使用uname -r命令查询您的内核版本.
       如有疑问, 请联系硬件厂商.
      kvm支持哪些用户空间工具?
     kvm使用稍改动的qemu程序来创建虚拟机. 一旦运行后, 虚拟机是一个标准的进程. 你可以使用top(1),kill(1),taskset(1)和类似的工具来管理虚拟机.
    kvm支持哪些虚拟磁盘格式?
    kvm从qemu继承了丰富的磁盘格式, 包括裸映象(raw images), 原始qemu格式(qcow), VMware格式和更多.
     kvm和Xen有何区别?
     Xen是一个外部的hypervisor程序(虚拟机管理程序);它能够控制虚拟机和给多个客户机分配资源. 另一方面, kvm是linux的一部分, 可使用通常的linux调度器和内存管理. 这意味着kvm更小更易使用.
    另一方面, Xen同时支持全虚拟化和半虚拟化(修改过的客户机能有更好的性能). kvm当前不支持半虚拟化.
    kvm和VMware有何区别?
    VMware是一个专利产品. kvm是一个遵守GPL­的自由(开源)软件.
     kvm和QEMU有何区别?
   Qemu使用模拟器; kvm使用处理器扩展实现虚拟化.
   kvm有windows上的版本吗?
    当前没有.
     kvm支持哪些内核版本?
     [...]]]></description>
			<content:encoded><![CDATA[<p>你将需要一台运行最新linux内核的Intel处理器(含VT虚拟化技术)或AMD处理器(含SVM安全虚拟机技术的AMD处理器, 也叫AMD-V).</p>
<p>     什么是Intel VT/AMD-V?</p>
<p>      Intel VT和AMD’s AMD-V是一套与支持该技术的虚拟机监视器相结合的硬件增强特性(指令集扩展). kvm可在原始硬件速度下通过运行完全隔离的虚拟机来执行任务.<br />
      如何确认处理器含有Intel VT或AMD-V技术?</p>
<p>      在最新的Linux内核下运行:<br />
     egrep ‘^flags.*(vmx|svm)’ /proc/cpuinfo</p>
<p>      如有显示, 您的处理器具有VT功能. 你也可以通过厂商网站查询处理器型号的名称(在/proc/cpuinfo).</p>
<p>     注:<br />
    .一些厂商禁止了机器BIOS中的VT选项, 这种方式下VT不能被重新打开.<br />
./proc/cpuinfo仅从Linux 2.6.15(Intel)和Linux 2.6.16(AMD)开始显示虚拟化方面的信息. 请使用uname -r命令查询您的内核版本.</p>
<p>       如有疑问, 请联系硬件厂商.</p>
<p>      kvm支持哪些用户空间工具?</p>
<p>     kvm使用稍改动的qemu程序来创建虚拟机. 一旦运行后, 虚拟机是一个标准的进程. 你可以使用top(1),kill(1),taskset(1)和类似的工具来管理虚拟机.</p>
<p>    kvm支持哪些虚拟磁盘格式?</p>
<p>    kvm从qemu继承了丰富的磁盘格式, 包括裸映象(raw images), 原始qemu格式(qcow), VMware格式和更多.</p>
<p>     kvm和Xen有何区别?</p>
<p>     Xen是一个外部的hypervisor程序(虚拟机管理程序);它能够控制虚拟机和给多个客户机分配资源. 另一方面, kvm是linux的一部分, 可使用通常的linux调度器和内存管理. 这意味着kvm更小更易使用.</p>
<p>    另一方面, Xen同时支持全虚拟化和半虚拟化(修改过的客户机能有更好的性能). kvm当前不支持半虚拟化.</p>
<p>    kvm和VMware有何区别?</p>
<p>    VMware是一个专利产品. kvm是一个遵守GPL­的自由(开源)软件.</p>
<p>     kvm和QEMU有何区别?</p>
<p>   Qemu使用模拟器; kvm使用处理器扩展实现虚拟化.</p>
<p>   kvm有windows上的版本吗?</p>
<p>    当前没有.</p>
<p>     kvm支持哪些内核版本?</p>
<p>     kvm可以运行在最新的内核版本下(2.6.16或更高, 最好是用最新的内核)</p>
<p>      我需要多什么RAM(内存)才能运行kvm?</p>
<p>    你需要足够的内存在主机上运行单个或多个虚拟机. 建议主机内存至少1GB.</p>
<p>   KVM上的虚拟机支持哪些操作系统?</p>
<p>     我们已经测试了Linux(32/64位)和Windows(32位). 其它也许能够运行或不能运行.<br />
不支持64位的Windows操作系统, 该问题会在qemu-0.83发布和整合后修复.<br />
Intel处理器上几个Linux发行版在启动时候会挂起. 工作区需要取消grub中的splashscreen选项.</p>
<p>        KVM支持动态迁移功能吗(在不离线的情况下把虚拟机从一个主机移到另一个主机上)?</p>
<p>      现在kvm支持非动态迁移, 当内存数据需转移的时候, 系统需要停止. 动态迁移功能正在开发当中.</p>
<p>       kvm能够在64为主机上运行32位的客户机吗? 什么是PAE?</p>
<p>       kvm支持在64位主机上运行32位客户机, 也可以是任何PAE或非PAE客户机和主机组合. 但不支持在32位主机上运行64位客户机.</p>
<p>         如果我对一个VM进程使用kill -9将会发生什么?</p>
<p>        从客户机的角度来看, 就如你猛地把电源线从主机上拔出一样. 从主机的角度来看, 进程被杀掉, 进程占用的所有资源被施放.</p>
<p>        kvm支持SMP主机吗?</p>
<p>        支持.</p>
<p>         如何安装windows客户机?</p>
<p>         当前Windows客户机安装存在一点问题, 问题在APIC的实现上. 现在APIC由qemu来模拟, 而qemu还没有完全整合到kvm虚拟cpu中. 我们正加紧在kvm中实现APIC功能.</p>
<p>        到现在, 启动qemu请使用-no-acpi参数. 如果你的客户机需使用APIC HAL, 建议参考下面步骤:</p>
<p>        1. 关闭kvm运行客户机(-no-kvm)<br />
My Computer -&gt; Properties -&gt; Hardware -&gt; Device Manager -&gt; [Whatever under Computer] -&gt; Properties -&gt; Update Driver -&gt; Not at this time -&gt; Next -&gt; Install from a list -&gt; Next -&gt; Don’t search -&gt; Next -&gt; Standard PC -&gt; Next.<br />
   “Standard PC”是无acpi支持的HAL.</p>
<p>         Qumranet提供哪些产品?<br />
       Qumranet是一家由Qequoia Capital和Norwest Venture Partners (NVP)投资的初创公司, 当前公司处于准备运营当中(正在加紧开发公司的产品).<br />
本文来自CSDN博客，转载请标明出处：<a href="http://blog.csdn.net/JDMBA/archive/2007/03/08/1524365.aspx">http://blog.csdn.net/JDMBA/archive/2007/03/08/1524365.aspx</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.c1gstudio.com/archives/934/feed</wfw:commentRss>
		</item>
		<item>
		<title>网站挂马</title>
		<link>http://blog.c1gstudio.com/archives/931</link>
		<comments>http://blog.c1gstudio.com/archives/931#comments</comments>
		<pubDate>Thu, 04 Feb 2010 02:29:52 +0000</pubDate>
		<dc:creator>C1G</dc:creator>
		
		<category><![CDATA[安全]]></category>

		<category><![CDATA[技术]]></category>

		<category><![CDATA[挂马]]></category>

		<guid isPermaLink="false">http://blog.c1gstudio.com/?p=931</guid>
		<description><![CDATA[收到google小组的邮件

主题： Malware notification regarding www.c1gstudio.com
Dear site owner or webmaster of www.c1gstudio.comm,
We recently discovered that some of your pages can cause users to be infected with malicious software. We have begun showing a warning page to users who visit these pages by clicking a search result on Google.com.
Below are some example URLs on your site which [...]]]></description>
			<content:encoded><![CDATA[<p>收到google小组的邮件</p>
<blockquote><p>
主题： Malware notification regarding www.c1gstudio.com</p>
<p>Dear site owner or webmaster of www.c1gstudio.comm,</p>
<p>We recently discovered that some of your pages can cause users to be infected with malicious software. We have begun showing a warning page to users who visit these pages by clicking a search result on Google.com.</p>
<p>Below are some example URLs on your site which can cause users to be infected (space inserted to prevent accidental clicking in case your mail client auto-links URLs):</p>
<p>http://www.c1gstudio.com/?q=Asp<br />
http://www.c1gstudio.com/?q=CPA<br />
http://www.c1gstudio.com/?q=LTE</p>
<p>Here is a link to a sample warning page:<br />
http://www.google.com/interstitial?url=http%3A//www.c1gstudio.com/%3Fq%3DAsp</p>
<p>We strongly encourage you to investigate this immediately to protect your visitors. Although some sites intentionally distribute malicious software, in many cases the webmaster is unaware because:</p>
<p>1) the site was compromised<br />
2) the site doesn't monitor for malicious user-contributed content<br />
3) the site displays content from an ad network that has a malicious advertiser</p>
<p>If your site was compromised, it's important to not only remove the malicious (and usually hidden) content from your pages, but to also identify and fix the vulnerability. We suggest contacting your hosting provider if you are unsure of how to proceed. StopBadware also has a resource page for securing compromised sites:<br />
http://www.stopbadware.org/home/security</p>
<p>Once you've secured your site, you can request that the warning be removed by visiting<br />
http://www.google.com/support/webmasters/bin/answer.py?answer=45432<br />
and requesting a review. If your site is no longer harmful to users, we will remove the warning.</p>
<p>Sincerely,<br />
Google Search Quality Team
</p></blockquote>
<p><strong>1.在网页查到恶意js代码</strong></p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">eval(function(p,a,c,k,e,d){e=function(c){return c.toString(36)};if(!''.replace(/^/,String)){while(c--){d[c.toString(a)]=k[c]||c.toString(a)}k=[function(e){return d[e]}];e=function(){return</li>
<li>...</li></ol></div>
<p><strong>2.粗览下web根目录，没有找到可疑文件</strong><br />
在日志报告中也没找到可疑请求<br />
用命令搜一下特征码,找出所有被感染的文件。</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">grep -R 'eval' /opt/htdocs &gt; /tmp/eval</li></ol></div>
<p><strong>3.过滤出可能含用木马的php文件</strong></p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">cat /tmp/eval |grep '.php' &gt; /tmp/evalphp</li></ol></div>
<p>在evalphp中找到木马</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">eval(gzinflate(base64_decode('ZJ1Hj4NsloX3/Uf6k1iQkzSaFjmaYEzctMg5Z379UOspqRZ2VWF4773nnAew6z//+z//marpX//Kj7j7p3zqoejiLf8ni</li>
<li>....</li></ol></div>
<p><strong>4.确认是dede文章的漏洞</strong></p>
<p>5.把木马改名<br />
在web日志中找访问时文件的请求，可以得攻击者ip,并可查看都做了什么操作<br />
参照<br />
<a href="http://blog.c1gstudio.com/archives/448">http://blog.c1gstudio.com/archives/448</a><br />
打上补丁，恢复被感染文件<br />
dede程序真不告谱，给其加上ip限制。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.c1gstudio.com/archives/931/feed</wfw:commentRss>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 2.428 seconds -->
