<?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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>铁木箱子</title>
	<atom:link href="http://www.mzone.cc/feed" rel="self" type="application/rss+xml" />
	<link>http://www.mzone.cc</link>
	<description>记录铁木箱子工作与生活历程！</description>
	<lastBuildDate>Mon, 28 Nov 2011 08:20:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>WAC启动Android模拟器时出现“transfer error: Read-only file system”问题的解决</title>
		<link>http://www.mzone.cc/article/657.html</link>
		<comments>http://www.mzone.cc/article/657.html#comments</comments>
		<pubDate>Sun, 27 Nov 2011 14:31:09 +0000</pubDate>
		<dc:creator>铁木箱子</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[手机开发]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[wac]]></category>
		<category><![CDATA[widget]]></category>

		<guid isPermaLink="false">http://www.mzone.cc/?p=657</guid>
		<description><![CDATA[<p>&#160;&#160;&#160;&#160;&#160; 这两天在用WAC SDK开发Widget时，在启动Android模拟器时Eclipse的Consle出现如下错误：</p>

<div class="wp_syntax"><div class="code"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">2011</span>-<span style="color: #000000;">11</span>-<span style="color: #000000;">27</span> <span style="color: #000000;">22</span>:08:<span style="color: #000000;">49</span> - ddms<span style="color: #7a0874; font-weight: bold;">&#93;</span>transfer error: Read-onl[......]</div></li></ol></div></div><p class='read-more'><a href='http://www.mzone.cc/article/657.html'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 这两天在用WAC SDK开发Widget时，在启动Android模拟器时Eclipse的Consle出现如下错误：</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">2011</span>-<span style="color: #000000;">11</span>-<span style="color: #000000;">27</span> <span style="color: #000000;">22</span>:08:<span style="color: #000000;">49</span> - ddms<span style="color: #7a0874; font-weight: bold;">&#93;</span>transfer error: Read-only <span style="color: #c20cb9; font-weight: bold;">file</span> system</div></li></ol></pre></div></div>

<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 然后Widget无法安装和执行！在参考了官方论坛上的相同问题的一个帖子后，也没有实质的解决办法（主要是楼主不厚道，解决了也不说明如何解决）。另外，根据管理员的提示，发现也无法解决问题，相应的两个帖子的地址如下：</p>
<p>开发人员的提问：<a href="http://www.wacapps.net/forums/-/message_boards/message/148022?_19_threadView=combination" target="_blank">http://www.wacapps.net/forums/-/message_boards/message/148022?_19_threadView=combination</a></p>
<p>管理员的文档：<a href="http://www.wacapps.net/web/wac/wiki/-/wiki/Developer%20Guide/Install+WAC+Integrated+SDK#2" target="_blank">http://www.wacapps.net/web/wac/wiki/-/wiki/Developer%20Guide/Install+WAC+Integrated+SDK#2</a></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 最终还是自己摸索解决了，因为我用的是win7，默认启动SDK中的Eclipse不是管理员权限，导致如上错误。解决的办法是：</p>
<p><span style="color:#ff0000;">1、打开AVD所在的目录（默认是C:\Users\你的名称\.android），将.android目录及其子目录的只读属性去掉；</span></p>
<p><span style="color: rgb(255, 0, 0);">2、在SDK的Eclipse.exe上右键选择“以管理员身份运行”，然后启动SDK再运行widget；</span></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 需要注明的是这个是win7下的解决办法，我是直接用的WAC SDK进行安装测试的。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mzone.cc/article/657.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Maven2中snapshot快照库的使用</title>
		<link>http://www.mzone.cc/article/654.html</link>
		<comments>http://www.mzone.cc/article/654.html#comments</comments>
		<pubDate>Fri, 28 Oct 2011 04:08:40 +0000</pubDate>
		<dc:creator>铁木箱子</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[技术杂谈]]></category>
		<category><![CDATA[maven]]></category>
		<category><![CDATA[release]]></category>
		<category><![CDATA[snapshot]]></category>
		<category><![CDATA[快照库]]></category>

		<guid isPermaLink="false">http://www.mzone.cc/?p=654</guid>
		<description><![CDATA[<p>&#160;&#160;&#160;&#160;&#160; 之前有过几篇文章介绍了mavven中release和snapshot库的作用，如下（不太了解的可以参考看一下）：</p>
<p>&#160;&#160;&#160;&#160;&#160; 1、<a href="http://www.mzone.cc/article/279.html" target="_blank">maven2中snapshot快照库和release发布库[......]</a></p><p class='read-more'><a href='http://www.mzone.cc/article/654.html'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 之前有过几篇文章介绍了mavven中release和snapshot库的作用，如下（不太了解的可以参考看一下）：</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1、<a href="http://www.mzone.cc/article/279.html" target="_blank">maven2中snapshot快照库和release发布库的应用</a></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2、<a href="http://www.mzone.cc/article/277.html" rel="prev" target="_blank">maven中snapshot快照库和release发布库的区别和作用</a></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 另外，今天在使用snapshot快照库时遇到一个问题，我一个构件的发布配置如下（在构件的pom文件中）：</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;modelVersion<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>4.0.0<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/modelVersion<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;groupId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>cc.mzone<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/groupId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;artifactId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>workflow<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/artifactId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;version<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>0.1-SNAPSHOT<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/version<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;packaging<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>jar<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/packaging<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;distributionManagement<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;repository<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;id<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>kt<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/id<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;url<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>http://192.168.1.112/nexus/content/repositories/kt<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/url<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/repository<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;snapshotRepository<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;id<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>kt-snapshot<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/id<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;url<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>http://192.168.1.112/nexus/content/repositories/kt-snapshot<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/url<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;uniqueVersion<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>true<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/uniqueVersion<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/snapshotRepository<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/distributionManagement<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></li></ol></pre></div></div>

<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 这个是构件的发布配置，其中snapshot快照库中使用了uniqueVersion为true，这个表明每次发布都会在服务器上留下一个新版本（加上时间后缀的版本）。这个true和false不影响快照库，只是是否节省服务器空间的问题。在通过mvn deploy发布到服务器后，在依赖该构件的项目的pom文件中写上依赖：</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;dependency<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;groupId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>cc.mzone<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/groupId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;artifactId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>workflow<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/artifactId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;version<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>0.1-SNAPSHOT<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/version<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/dependency<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></li></ol></pre></div></div>

<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 然后在该项目中执行：mvn eclipse:eclipse进行其依赖构件的下载，结果却发现提示如下：</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>WARNING<span style="color: #7a0874; font-weight: bold;">&#93;</span> An error occurred during dependency resolution.</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    Failed to retrieve cc.mzone:workflow-<span style="color: #000000;">0.1</span>-SNAPSHOT</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">Caused by: Unable to download the artifact from any repository</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">Try downloading the <span style="color: #c20cb9; font-weight: bold;">file</span> manually from the project website.</div></li></ol></pre></div></div>

<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 刚开始不太清楚原因，经过查证比对，发现是因为<strong><span style="color: rgb(255, 0, 0);">项目没有开启snapshot快照库的缘故</span></strong>！知道了原因，解决就好办了，有两种方法可以解决：</p>
<p><strong>1、第一种方法是在项目的pom文件中进行配置，如下</strong>：</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;repositories<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;repository<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;id<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>cc-mzone-nexus<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/id<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>MZONE<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;url<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>http://192.168.1.112/nexus/content/groups/public/<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/url<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;snapshots<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;enabled<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>true<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/enabled<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">  	    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;updatePolicy<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>interval:5<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/updatePolicy<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/snapshots<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/repository<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/repositories<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></li></ol></pre></div></div>

<p><strong>2、第二种方法是在maven的配置文件（conf/settings.xml）中进行配置，如下</strong>：</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;profiles<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;profile<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;id<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>cc-mzone-profile<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/id<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;repositories<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;repository<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;id<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>cc-mzone-nexus<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/id<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>MZONE<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;url<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>http://192.168.1.112/nexus/content/groups/public/<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/url<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;releases<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;enabled<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>true<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/enabled<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/releases<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;snapshots<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;enabled<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>true<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/enabled<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;updatePolicy<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>interval:10<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/updatePolicy<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/snapshots<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/repository<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/repositories<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/profile<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/profiles<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;activeProfiles<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;activeProfile<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>cc-mzone-profile<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/activeProfile<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/activeProfiles<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></li></ol></pre></div></div>

<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 以上两种方式都是打开snapshot快照库，允许快照库生效（重要就是snapshot中enabled要设置为true），第一种是项目级别的，第二种是全局的。出现的问题当然主要还是默认snapshot快照库是没有生效导致的，如此配置即可解决问题！</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mzone.cc/article/654.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>navicat8的注册码</title>
		<link>http://www.mzone.cc/article/651.html</link>
		<comments>http://www.mzone.cc/article/651.html#comments</comments>
		<pubDate>Fri, 30 Sep 2011 01:55:03 +0000</pubDate>
		<dc:creator>铁木箱子</dc:creator>
				<category><![CDATA[技术杂谈]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[navicat]]></category>
		<category><![CDATA[注册码]]></category>
		<category><![CDATA[破解]]></category>

		<guid isPermaLink="false">http://www.mzone.cc/?p=651</guid>
		<description><![CDATA[<p>&#160;&#160;&#160;&#160;&#160; navicat真是个好东东，只是收费，照理来说应该支持正版，可惜手中无银，只能寻求破解，但纯属私人使用，供大家参考学习。</p>
<p>&#160;&#160;&#160;&#160;&#160; navicat8的注册码，在8.0.20企业版中通过：[......]</p><p class='read-more'><a href='http://www.mzone.cc/article/651.html'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; navicat真是个好东东，只是收费，照理来说应该支持正版，可惜手中无银，只能寻求破解，但纯属私人使用，供大家参考学习。</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; navicat8的注册码，在8.0.20企业版中通过：</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">姓名<span style="color: #7a0874; font-weight: bold;">&#40;</span>Name<span style="color: #7a0874; font-weight: bold;">&#41;</span>：www.crazymao.net</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">组织<span style="color: #7a0874; font-weight: bold;">&#40;</span>Organization<span style="color: #7a0874; font-weight: bold;">&#41;</span>：www.crazymao.net</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">注册码<span style="color: #7a0874; font-weight: bold;">&#40;</span>Serial<span style="color: #7a0874; font-weight: bold;">&#41;</span>：NAVJ-W56S-3YUU-MVHV</div></li></ol></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.mzone.cc/article/651.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>关于php程序报date()警告的处理</title>
		<link>http://www.mzone.cc/article/649.html</link>
		<comments>http://www.mzone.cc/article/649.html#comments</comments>
		<pubDate>Thu, 08 Sep 2011 06:40:20 +0000</pubDate>
		<dc:creator>铁木箱子</dc:creator>
				<category><![CDATA[Linux/服务器]]></category>
		<category><![CDATA[P&P]]></category>
		<category><![CDATA[Web技术]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[timezone]]></category>

		<guid isPermaLink="false">http://www.mzone.cc/?p=649</guid>
		<description><![CDATA[<p>&#160;&#160;&#160;&#160;&#160; 在php程序中运行时报如下警告信息：</p>

<div class="wp_syntax"><div class="code"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">PHP Warning<span style="color: #339933;">:</span> <span style="color: #990000;">date</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span> It is not safe to rely on the <span style="color: #990000;">system</span><span style="color: #0000ff;">'s timezone settings. You are *req[......]</span></div></li></ol></div></div><p class='read-more'><a href='http://www.mzone.cc/article/649.html'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 在php程序中运行时报如下警告信息：</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">PHP Warning<span style="color: #339933;">:</span> <span style="color: #990000;">date</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span> It is not safe to rely on the <span style="color: #990000;">system</span><span style="color: #0000ff;">'s timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function</span></div></li></ol></pre></div></div>

<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 主要是时区没有设置的缘故，调整很简单，打开php.ini文件，并找到date.timezone这行，改成如下：</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">date.timezone = Asia<span style="color: #000000; font-weight: bold;">/</span>Shanghai</div></li></ol></pre></div></div>

<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 然后重启apache即可！</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mzone.cc/article/649.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>关于outlook2007在WIN7下收取邮件很慢的解决办法</title>
		<link>http://www.mzone.cc/article/646.html</link>
		<comments>http://www.mzone.cc/article/646.html#comments</comments>
		<pubDate>Tue, 06 Sep 2011 01:40:30 +0000</pubDate>
		<dc:creator>铁木箱子</dc:creator>
				<category><![CDATA[Linux/服务器]]></category>
		<category><![CDATA[技术杂谈]]></category>
		<category><![CDATA[james]]></category>
		<category><![CDATA[outlook]]></category>
		<category><![CDATA[pop3]]></category>
		<category><![CDATA[邮件收取慢]]></category>

		<guid isPermaLink="false">http://www.mzone.cc/?p=646</guid>
		<description><![CDATA[<p>&#160;&#160;&#160;&#160;&#160; 最近在公司内部搭建了一套开发环境，用到了邮件系统，采用的是apache的james邮件系统，如何部署和使用后面有空详细介绍。最近在使用邮件的过程中，发现在win7下用outlook2007收取邮件有时候异常慢，发送邮件倒是挺快的。经过go[......]</p><p class='read-more'><a href='http://www.mzone.cc/article/646.html'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 最近在公司内部搭建了一套开发环境，用到了邮件系统，采用的是apache的james邮件系统，如何部署和使用后面有空详细介绍。最近在使用邮件的过程中，发现在win7下用outlook2007收取邮件有时候异常慢，发送邮件倒是挺快的。经过google后，有一篇文章提到可能是james的stat命令导致的，经过telnet并手动测试后，发现问题不是这样的。后来在微软的官方帮助网站中找到类似的问题描述：</p>
<p><span style="color:#800000;">在 Microsoft Office Outlook 2007 中从 POP3 服务器尝试下载电子邮件所花的时间比预期还要长。例如，在下载 1 MB 的邮件时，下载进程可能需要一个小时。</p>
<p>	此外，在使用 Internet 服务提供商 (ISP) 的 SMTP 服务器发送电子邮件时，连接可能会超时。发生此问题时，您会收到以下错误消息：</span></p>
<p><strong><span style="color:#800000;">任务“主要 &#8211; 发送和接收”报告了错误 (0x800CCC0F):“服务器连接已中断。如果继续出现此问题，请与服务器管理员或 Internet 服务提供商(ISP)联系。” </span></strong></p>
<p><span style="color:#800000;">如果网络硬件设备（例如路由器）不支持 TCP 窗口缩放，就会出现此问题。TCP 窗口缩放是 Windows Vista 的一项新功能。</span></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 按照官方提出的解决方法处理后现在收取邮件倒是很快了，看来不关james的问题，具体的解决办法如下：</p>
<p>1、用管理员身份打开WIN7下的命令提示符</p>
<p>2、输入：netsh interface tcp set global autotuninglevel=disabled</p>
<p>3、然后回车，等确认完成后，重启outlook再试即可</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 官方的帮助信息在这里：<a href="http://support.microsoft.com/kb/935400/" target="_blank">http://support.microsoft.com/kb/935400/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mzone.cc/article/646.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux报“Unknown HZ value! (288) Assume 100”错误</title>
		<link>http://www.mzone.cc/article/641.html</link>
		<comments>http://www.mzone.cc/article/641.html#comments</comments>
		<pubDate>Thu, 18 Aug 2011 03:57:12 +0000</pubDate>
		<dc:creator>铁木箱子</dc:creator>
				<category><![CDATA[Linux/服务器]]></category>
		<category><![CDATA[技术杂谈]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[rootkit]]></category>
		<category><![CDATA[SHV4]]></category>
		<category><![CDATA[SHV5]]></category>
		<category><![CDATA[入侵]]></category>

		<guid isPermaLink="false">http://www.mzone.cc/?p=641</guid>
		<description><![CDATA[<p>&#160;&#160;&#160;&#160;&#160; 今天早上收到通知说服务器的root密码被修改了，赶紧测试，果然无法链接登陆，通过其他渠道经过一系列周折恢复密码，经过初步诊断在无人修改密码的情况下被修改了密码，只有系统被入侵的可能性了。然后在使用命令查看进程时出现下面的提示：</p>

<div class="wp_syntax"><div class="code"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">Unkn[......]</div></li></ol></div></div><p class='read-more'><a href='http://www.mzone.cc/article/641.html'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 今天早上收到通知说服务器的root密码被修改了，赶紧测试，果然无法链接登陆，通过其他渠道经过一系列周折恢复密码，经过初步诊断在无人修改密码的情况下被修改了密码，只有系统被入侵的可能性了。然后在使用命令查看进程时出现下面的提示：</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">Unknown HZ value<span style="color: #000000; font-weight: bold;">!</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">288</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> Assume 100.</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">root     <span style="color: #000000;">15575</span>  <span style="color: #000000;">0.0</span>  <span style="color: #000000;">0.0</span> <span style="color: #000000;">61116</span>  <span style="color: #000000;">740</span> pts<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">3</span>    S    <span style="color: #000000;">11</span>:<span style="color: #000000;">40</span>   <span style="color: #000000;">0</span>:00 <span style="color: #c20cb9; font-weight: bold;">grep</span> httpd</div></li></ol></pre></div></div>

<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Unknown HZ value! (288) Assume 100，这个错误以前还从来没遇到过，搜索一番后得知是应该是系统被入侵后的结果，该提示的说明如下：</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">Unknown HZ value<span style="color: #000000; font-weight: bold;">!</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #666666; font-style: normal;">##) Assume 100 -- You've been hacked!</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">On RHEL or Centos <span style="color: #000000;">4</span> or <span style="color: #000000;">5</span>, If you run the linux <span style="color: #7a0874; font-weight: bold;">command</span> top and you see something like:</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #ff0000;">&quot;Unknown HZ value! (75) Assume 100&quot;</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">Yours might not say <span style="color: #ff0000;">&quot;75&quot;</span> <span style="color: #660033;">--</span> it could be any number.</div></li><li style="font-weight: bold; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">If you see this, you should run rkhunter immediately, because your box has probably been taken over by arootkit <span style="color: #660033;">--</span> either SHV4 or SHV5.</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">The only reason you see this clue <span style="color: #ff0000;">&quot;Unknown HZ value&quot;</span> is because the rootkit replaces the top <span style="color: #7a0874; font-weight: bold;">command</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span>among others<span style="color: #7a0874; font-weight: bold;">&#41;</span>with a substitute top <span style="color: #7a0874; font-weight: bold;">command</span> that will hide its processes. Their replacement top is old <span style="color: #7a0874; font-weight: bold;">&#40;</span>version <span style="color: #000000;">1.2</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> and cannothandle the HZ value of the <span style="color: #000000;">2.6</span> linux kernel.</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">Sad to say, but <span style="color: #000000; font-weight: bold;">if</span> this happens to you, its <span style="color: #000000; font-weight: bold;">time</span> to reinstall your OS<span style="color: #000000; font-weight: bold;">!</span></div></li></ol></pre></div></div>

<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 按照这个说明，安装了一个rkhunter进行系统检测，发现有很多Warning和Not Found错误，同时也检测到几个隐藏程序入下：</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">Rootkit checks...</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    Rootkits checked : <span style="color: #000000;">258</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    Possible rootkits: <span style="color: #000000;">3</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">    Rootkit names    : cb Rootkit, SHV4 Rootkit, SHV5 Rootkit</div></li></ol></pre></div></div>

<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 有SHV4和SHV5后门程序，google一下，这些后门程序可以替换诸如ls、ifconfig、login、ssh等系统命令。果然是被入侵了，估计想彻底清除这些后门程序还真不简单，暂时也不知道这些后门程序是如何被注入的，是破解root密码还是系统bug？不确定，今天赶紧备份数据先，解决不了这些隐藏后门，只好重装系统了。NND，折磨人！</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mzone.cc/article/641.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SVN创建库时出现“error while loading shared libraries”错误的解决</title>
		<link>http://www.mzone.cc/article/639.html</link>
		<comments>http://www.mzone.cc/article/639.html#comments</comments>
		<pubDate>Fri, 12 Aug 2011 06:22:35 +0000</pubDate>
		<dc:creator>铁木箱子</dc:creator>
				<category><![CDATA[Linux/服务器]]></category>
		<category><![CDATA[技术杂谈]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[apr]]></category>
		<category><![CDATA[apr-util]]></category>
		<category><![CDATA[aprutil]]></category>
		<category><![CDATA[SVN]]></category>

		<guid isPermaLink="false">http://www.mzone.cc/?p=639</guid>
		<description><![CDATA[<p>&#160;&#160;&#160;&#160;&#160; 这两天把开发服务器重新调整了并做了数据迁移，换了一台新机器后在新服务器上执行之前的SVN库创建脚本时出现如下错误：</p>

<div class="wp_syntax"><div class="code"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #c20cb9; font-weight: bold;">svnadmin</span>:error <span style="color: #000000; font-weight: bold;">while</span> loading shared libraries: libaprutil-1.[......]</div></li></ol></div></div><p class='read-more'><a href='http://www.mzone.cc/article/639.html'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 这两天把开发服务器重新调整了并做了数据迁移，换了一台新机器后在新服务器上执行之前的SVN库创建脚本时出现如下错误：</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #c20cb9; font-weight: bold;">svnadmin</span>:error <span style="color: #000000; font-weight: bold;">while</span> loading shared libraries: libaprutil-1.so.0:cannot open shared object <span style="color: #c20cb9; font-weight: bold;">file</span>: No such <span style="color: #c20cb9; font-weight: bold;">file</span> or directory</div></li></ol></pre></div></div>

<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 出现这个错误的原因就是svnserver在编译时是加了apache支持的，现在无法找到apr-util库，一般情况下我们将apr-util的lib目录加入到系统的lib路径中就可以了，比如我服务器的apache的apr和apr-util的安装目录分别如下：</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">apr路径：<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>apr</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">apr-util路径：<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>apr-util</div></li></ol></pre></div></div>

<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 然后我们打开/etc/ld.so.conf文件，并加入上面两个目录下的lib路径到文件中，如下：</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: normal;"># vi /etc/ld.so.conf</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">...</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>apr<span style="color: #000000; font-weight: bold;">/</span>lib</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>apr-util<span style="color: #000000; font-weight: bold;">/</span>lib</div></li></ol></pre></div></div>

<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 在文件的最后加入上面的两行指定路径即可，然后更新下：</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #666666; font-style: normal;"># ldconfig -v</span></div></li></ol></pre></div></div>

<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 完成后，我们再使用svn脚本命令创建源码库时就不会报错了。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mzone.cc/article/639.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux下用iptables限制只允许特定IP访问</title>
		<link>http://www.mzone.cc/article/636.html</link>
		<comments>http://www.mzone.cc/article/636.html#comments</comments>
		<pubDate>Tue, 09 Aug 2011 05:15:10 +0000</pubDate>
		<dc:creator>铁木箱子</dc:creator>
				<category><![CDATA[Linux/服务器]]></category>
		<category><![CDATA[技术杂谈]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[端口]]></category>
		<category><![CDATA[限制访问]]></category>

		<guid isPermaLink="false">http://www.mzone.cc/?p=636</guid>
		<description><![CDATA[<p>&#160;&#160;&#160;&#160;&#160; 经常我们在配置linux服务器时需要做一些安全限制，比如只允许特定的IP地址段才能够访问指定的端口等。比如我有一台服务器，是有双IP的，内外网都可以访问，但有些应用又不允许外部用户访问，所以需要在端口上做一些特别限制，比如只允许192.1[......]</p><p class='read-more'><a href='http://www.mzone.cc/article/636.html'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 经常我们在配置linux服务器时需要做一些安全限制，比如只允许特定的IP地址段才能够访问指定的端口等。比如我有一台服务器，是有双IP的，内外网都可以访问，但有些应用又不允许外部用户访问，所以需要在端口上做一些特别限制，比如只允许192.168.1.x网段的用户访问服务器的389端口，那么我们可以在服务器的iptables中加入如下设置：</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span style="color: #660033;">-A</span> RH-Firewall-<span style="color: #000000;">1</span>-INPUT <span style="color: #660033;">-m</span> state <span style="color: #660033;">--state</span> NEW <span style="color: #660033;">-m</span> tcp <span style="color: #660033;">-p</span> tcp <span style="color: #660033;">-s</span> 192.168.1.0<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">24</span> <span style="color: #660033;">--dport</span> <span style="color: #000000;">389</span> <span style="color: #660033;">-j</span> ACCEPT</div></li></ol></pre></div></div>

<p>&nbsp;&nbsp;&nbsp; 通过-s指定来源地址进行限制，这里是只允许192.168.1.x网段的机器访问指定的389端口（通过&#8211;dport指定），然后重启防火墙</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">service iptables restart</div></li></ol></pre></div></div>

<p>&nbsp;&nbsp;&nbsp; 然后我们在内网就可以顺利的访问389端口，而外部网络或非该网段的机器就无法访问该端口了，从而也达到了我们想要的效果，做到了一定的安全限制。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mzone.cc/article/636.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>很好很强大的远程桌面控制工具TeamViewer</title>
		<link>http://www.mzone.cc/article/634.html</link>
		<comments>http://www.mzone.cc/article/634.html#comments</comments>
		<pubDate>Tue, 12 Jul 2011 08:06:52 +0000</pubDate>
		<dc:creator>铁木箱子</dc:creator>
				<category><![CDATA[技术杂谈]]></category>
		<category><![CDATA[TeamViewer]]></category>
		<category><![CDATA[免费]]></category>
		<category><![CDATA[远程控制]]></category>
		<category><![CDATA[远程桌面]]></category>

		<guid isPermaLink="false">http://www.mzone.cc/?p=634</guid>
		<description><![CDATA[<p>&#160;&#160;&#160;&#160;&#160; 今天无意发现一个很好、很强大的远程桌面控制工具TeamViewer，任何机器上只要使用这个软件就可以相互进行远程控制，关键的是它对于非商业用户而言是<strong><span style="color: rgb(255, 0, 0);">免费的</span></strong>！什么都不敌免费两字好用，果断使用和推荐。</p>
<p>&#160;&#160;&#160;&#038;n[......]</p><p class='read-more'><a href='http://www.mzone.cc/article/634.html'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 今天无意发现一个很好、很强大的远程桌面控制工具TeamViewer，任何机器上只要使用这个软件就可以相互进行远程控制，关键的是它对于非商业用户而言是<strong><span style="color: rgb(255, 0, 0);">免费的</span></strong>！什么都不敌免费两字好用，果断使用和推荐。</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TeamViewer的官方网站是：<a href="http://www.teamviewer.com/zhcn/" target="_blank">http://www.teamviewer.com/zhcn/</a>，“中文、免费、免安装（绿色）、小巧、穿防火墙&#8230;”，这些关键字足以心动加行动了。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mzone.cc/article/634.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>ASP网站出现“msxml3.dll 错误 &#8217;80072ee7&#8242;”错误</title>
		<link>http://www.mzone.cc/article/631.html</link>
		<comments>http://www.mzone.cc/article/631.html#comments</comments>
		<pubDate>Sat, 09 Jul 2011 03:23:33 +0000</pubDate>
		<dc:creator>铁木箱子</dc:creator>
				<category><![CDATA[Web技术]]></category>
		<category><![CDATA[技术杂谈]]></category>
		<category><![CDATA[asp]]></category>
		<category><![CDATA[木马]]></category>
		<category><![CDATA[漏洞]]></category>

		<guid isPermaLink="false">http://www.mzone.cc/?p=631</guid>
		<description><![CDATA[<p>&#160;&#160;&#160;&#160;&#160; 这两天接到通知，说公司的一个网站访问不了，经访问发现页面提示如下错误：</p>

<div class="wp_syntax"><div class="code"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">msxml3.<span style="color: #9900cc;">dll</span> 错误 <span style="color: #008000;font-style: normal;">'80072ee7'</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&#160;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">The <span style="color: #990099; font-weight: bold;">server</span> name <span style="color: #0000ff; font-weight: bold;">or</span> address could <span style="color: #990099; font-weight: bold;">not</span> be resolved</div></li></ol></div></div>

<p>&#038;n[......]</p><p class='read-more'><a href='http://www.mzone.cc/article/631.html'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 这两天接到通知，说公司的一个网站访问不了，经访问发现页面提示如下错误：</p>

<div class="wp_syntax"><div class="code"><pre class="asp" style="font-family:monospace;"><ol><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">msxml3.<span style="color: #9900cc;">dll</span> 错误 <span style="color: #008000;font-style: normal;">'80072ee7'</span></div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">&nbsp;</div></li><li style="font-weight: normal; vertical-align:top;"><div style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">The <span style="color: #990099; font-weight: bold;">server</span> name <span style="color: #0000ff; font-weight: bold;">or</span> address could <span style="color: #990099; font-weight: bold;">not</span> be resolved</div></li></ol></pre></div></div>

<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 看提示应该是域名或地址无法解析，百度一番都是什么在hosts文件中加解析或者是DNS设置。我从我的实际情况来说，不是这个问题，因为之前这个网站所在的服务器是一直没法访问外网的，都是可以正常访问，只是这两天无法访问而已。经过查看提示文件，发现该文件是global.asa文件，而且修改时间还是最近两天的，而我们又没有更新网站。所以，第一念头就是“是不是被挂木马了？”。然后查看文件的内容，发现有访问一个不知名的网址，初步断定问题应该是这里了，将global.asa文件重命名后再重启网站，网站访问ok！</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 所以基本上就确认是网站被挂木马了，幸亏服务器无法访问互联网，不然还不知道有什么样的后果，赶紧查找修复漏洞！</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mzone.cc/article/631.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

