<?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>猫言猫语 &#187; Linux</title>
	<atom:link href="http://imcat.in/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://imcat.in</link>
	<description>人的头脑太复杂,时间过得久,有时候连自己也被自己骗了,记下来才是最真实的……</description>
	<lastBuildDate>Fri, 21 Oct 2011 17:55:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Linux命令tar压缩排除指定目录的方法</title>
		<link>http://imcat.in/linux-tar-exclude/</link>
		<comments>http://imcat.in/linux-tar-exclude/#comments</comments>
		<pubDate>Thu, 11 Aug 2011 06:04:17 +0000</pubDate>
		<dc:creator>Cat.</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[tar]]></category>

		<guid isPermaLink="false">http://imcat.in/?p=1461</guid>
		<description><![CDATA[例如我要压缩 /cat/backup 这个文件夹 (绝对路径),但是不将里面的图片文件夹img也压缩了.可以用tar命令的--exclude 排除掉.方法 tar -zcvf backup.tar.gz --exclude=/cat/backup/img &#160;/cat/backup 排除多个目录 tar -zcvf backup.tar.gz --exclude=/cat/backup/img --exclude=/cat/backup/a --exclude=/cat/backup/b /cat/backup 暧味日志iptables限制同一IP连接数 (3)Linux下替换文件名中的空格 (0)linux修改ssh端口和禁止root远程登陆设置 (5)使用WinSCP连接到Linux (3)在Linux系统centos 上安装7-ZIP (11)]]></description>
			<content:encoded><![CDATA[<p>例如我要压缩 /cat/backup 这个文件夹 (绝对路径),但是不将里面的图片文件夹img也压缩了.可以用tar命令的--exclude 排除掉.方法</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">tar -zcvf backup.tar.gz --exclude=/cat/backup/img &nbsp;/cat/backup</div></div>
<p>排除多个目录</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">tar -zcvf backup.tar.gz --exclude=/cat/backup/img --exclude=/cat/backup/a --exclude=/cat/backup/b /cat/backup</div></div>
<h2  class="related_post_title">暧味日志</h2><ul class="related_post"><li><a href="http://imcat.in/iptables-limit-number-connections-same-ip/" title="iptables限制同一IP连接数">iptables限制同一IP连接数</a> (3)</li><li><a href="http://imcat.in/linux-replace-the-file-name-space/" title="Linux下替换文件名中的空格">Linux下替换文件名中的空格</a> (0)</li><li><a href="http://imcat.in/linux-change-root-ssh-remote-login-port-and-set-against/" title="linux修改ssh端口和禁止root远程登陆设置">linux修改ssh端口和禁止root远程登陆设置</a> (5)</li><li><a href="http://imcat.in/use-winscp-connect-linux/" title="使用WinSCP连接到Linux">使用WinSCP连接到Linux</a> (3)</li><li><a href="http://imcat.in/linux-system-install-7-zip-centos/" title="在Linux系统centos 上安装7-ZIP">在Linux系统centos 上安装7-ZIP</a> (11)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://imcat.in/linux-tar-exclude/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iptables限制同一IP连接数</title>
		<link>http://imcat.in/iptables-limit-number-connections-same-ip/</link>
		<comments>http://imcat.in/iptables-limit-number-connections-same-ip/#comments</comments>
		<pubDate>Thu, 31 Mar 2011 07:49:35 +0000</pubDate>
		<dc:creator>Cat.</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[iptables]]></category>

		<guid isPermaLink="false">http://imcat.in/?p=1397</guid>
		<description><![CDATA[最近无聊人太多了,一直拿我的小博客来压力测试,所以不得不限制同一个IP的连接数,用iptables就可以简单设置了... &#160; iptables -I INPUT -p tcp --dport 80 -m connlimit --connlimit-above 10 -j DROP 限制单个地址并发连接数不大于10 暧味日志Linux命令tar压缩排除指定目录的方法 (0)Linux下替换文件名中的空格 (0)linux修改ssh端口和禁止root远程登陆设置 (5)使用WinSCP连接到Linux (3)在Linux系统centos 上安装7-ZIP (11)]]></description>
			<content:encoded><![CDATA[<p>最近无聊人太多了,一直拿我的小博客来压力测试,所以不得不限制同一个IP的连接数,用iptables就可以简单设置了...</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; iptables -I INPUT -p tcp --dport 80 -m connlimit --connlimit-above 10 -j DROP</div></div>
<p>限制单个地址并发连接数不大于10</p>
<h2  class="related_post_title">暧味日志</h2><ul class="related_post"><li><a href="http://imcat.in/linux-tar-exclude/" title="Linux命令tar压缩排除指定目录的方法">Linux命令tar压缩排除指定目录的方法</a> (0)</li><li><a href="http://imcat.in/linux-replace-the-file-name-space/" title="Linux下替换文件名中的空格">Linux下替换文件名中的空格</a> (0)</li><li><a href="http://imcat.in/linux-change-root-ssh-remote-login-port-and-set-against/" title="linux修改ssh端口和禁止root远程登陆设置">linux修改ssh端口和禁止root远程登陆设置</a> (5)</li><li><a href="http://imcat.in/use-winscp-connect-linux/" title="使用WinSCP连接到Linux">使用WinSCP连接到Linux</a> (3)</li><li><a href="http://imcat.in/linux-system-install-7-zip-centos/" title="在Linux系统centos 上安装7-ZIP">在Linux系统centos 上安装7-ZIP</a> (11)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://imcat.in/iptables-limit-number-connections-same-ip/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Linux下替换文件名中的空格</title>
		<link>http://imcat.in/linux-replace-the-file-name-space/</link>
		<comments>http://imcat.in/linux-replace-the-file-name-space/#comments</comments>
		<pubDate>Mon, 21 Feb 2011 03:16:01 +0000</pubDate>
		<dc:creator>Cat.</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://imcat.in/?p=1393</guid>
		<description><![CDATA[find . -type f -name &#34;* *&#34; -print &#124; while read name; do na=$(echo $name &#124; tr ' ' '_') if [[ $name != $na ]]; then mv &#34;$name&#34; $na fi done 暧味日志Linux命令tar压缩排除指定目录的方法 (0)iptables限制同一IP连接数 (3)linux修改ssh端口和禁止root远程登陆设置 (5)使用WinSCP连接到Linux (3)在Linux系统centos 上安装7-ZIP (11)]]></description>
			<content:encoded><![CDATA[<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">find . -type f -name &quot;* *&quot; -print |<br />
while read name; do<br />
na=$(echo $name | tr ' ' '_')<br />
if [[ $name != $na ]]; then<br />
mv &quot;$name&quot; $na<br />
fi<br />
done</div></div>
<h2  class="related_post_title">暧味日志</h2><ul class="related_post"><li><a href="http://imcat.in/linux-tar-exclude/" title="Linux命令tar压缩排除指定目录的方法">Linux命令tar压缩排除指定目录的方法</a> (0)</li><li><a href="http://imcat.in/iptables-limit-number-connections-same-ip/" title="iptables限制同一IP连接数">iptables限制同一IP连接数</a> (3)</li><li><a href="http://imcat.in/linux-change-root-ssh-remote-login-port-and-set-against/" title="linux修改ssh端口和禁止root远程登陆设置">linux修改ssh端口和禁止root远程登陆设置</a> (5)</li><li><a href="http://imcat.in/use-winscp-connect-linux/" title="使用WinSCP连接到Linux">使用WinSCP连接到Linux</a> (3)</li><li><a href="http://imcat.in/linux-system-install-7-zip-centos/" title="在Linux系统centos 上安装7-ZIP">在Linux系统centos 上安装7-ZIP</a> (11)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://imcat.in/linux-replace-the-file-name-space/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>linux修改ssh端口和禁止root远程登陆设置</title>
		<link>http://imcat.in/linux-change-root-ssh-remote-login-port-and-set-against/</link>
		<comments>http://imcat.in/linux-change-root-ssh-remote-login-port-and-set-against/#comments</comments>
		<pubDate>Tue, 05 Oct 2010 07:49:41 +0000</pubDate>
		<dc:creator>Cat.</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://imcat.in/?p=1388</guid>
		<description><![CDATA[linux修改ssh端口22 vi /etc/ssh/sshd_config 找到#port 22 将前面的#去掉,然后修改端口 port 1234 重启服务就OK了 service sshd restart 为增强安全 先增加一个普通权限的用户,并设置密码 useradd test passwd test 然后禁止ROOT远程SSH登录： vi /etc/ssh/sshd_config 把其中的 PermitRootLogin yes 改为 PermitRootLogin no 重启sshd服务 service sshd restart 远程管理用普通用户test登录,然后用 su root 切换到root用户就可以拿到最高权限 暧味日志Linux命令tar压缩排除指定目录的方法 (0)iptables限制同一IP连接数 (3)Linux下替换文件名中的空格 (0)安装denyhost防止SSH和FTP被暴力破解 (6)使用WinSCP连接到Linux (3)]]></description>
			<content:encoded><![CDATA[<p>linux修改ssh端口22</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">vi /etc/ssh/sshd_config</div></div>
<p>找到#port 22<br />
将前面的#去掉,然后修改端口 port 1234<br />
重启服务就OK了<br />
service sshd restart</p>
<p><span id="more-1388"></span><br />
为增强安全<br />
先增加一个普通权限的用户,并设置密码</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">useradd test<br />
passwd test</div></div>
<p>然后禁止ROOT远程SSH登录：</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">vi /etc/ssh/sshd_config</div></div>
<p>把其中的<br />
PermitRootLogin yes<br />
改为<br />
PermitRootLogin no<br />
重启sshd服务</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">service sshd restart</div></div>
<p>远程管理用普通用户test登录,然后用 su root 切换到root用户就可以拿到最高权限</p>
<h2  class="related_post_title">暧味日志</h2><ul class="related_post"><li><a href="http://imcat.in/linux-tar-exclude/" title="Linux命令tar压缩排除指定目录的方法">Linux命令tar压缩排除指定目录的方法</a> (0)</li><li><a href="http://imcat.in/iptables-limit-number-connections-same-ip/" title="iptables限制同一IP连接数">iptables限制同一IP连接数</a> (3)</li><li><a href="http://imcat.in/linux-replace-the-file-name-space/" title="Linux下替换文件名中的空格">Linux下替换文件名中的空格</a> (0)</li><li><a href="http://imcat.in/ssh-ftp-install-denyhost-revent-brute-force/" title="安装denyhost防止SSH和FTP被暴力破解">安装denyhost防止SSH和FTP被暴力破解</a> (6)</li><li><a href="http://imcat.in/use-winscp-connect-linux/" title="使用WinSCP连接到Linux">使用WinSCP连接到Linux</a> (3)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://imcat.in/linux-change-root-ssh-remote-login-port-and-set-against/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>使用WinSCP连接到Linux</title>
		<link>http://imcat.in/use-winscp-connect-linux/</link>
		<comments>http://imcat.in/use-winscp-connect-linux/#comments</comments>
		<pubDate>Sun, 03 Oct 2010 06:32:58 +0000</pubDate>
		<dc:creator>Cat.</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux VPS]]></category>
		<category><![CDATA[vps]]></category>
		<category><![CDATA[WinSCP]]></category>

		<guid isPermaLink="false">http://imcat.in/?p=1369</guid>
		<description><![CDATA[（1）winscp简介 通过WinSCP可以编辑、删除VPS上的文件，和上传文件到VPS。 与FTP不同的是，FTP通过会限制在某一目录中，而使用root通过WinSCP登录后则可以操作系统中的所有文件。 WinSCP的不足之处在于，WinSCP使用SFTP协议进行连接，而通过该连接的通信内容全部是经过加密的，在保证了安全的同时，也降低了传输速度。 所以，通常在FTP操作不了的情况下，才需要使用WinSCP。 （2）安装winscp 首先需要下载该软件。可以到官方网站（http://winscp.net/eng/download.php）通过下载链接下载，也可以直接通过下面的链接进行下载。 http://cdnetworks-kr-1.dl.sourceforge.net/project/winscp/WinSCP/4.2.8/winscp428setup.exe 下载后运行安装程序开始安装。文中未提到的设置均默认即可。 选择中文 选择安装Notepad++ 选择Explorer界面 开始安装Notepad++ 同样选择中文 （3）使用winscp登录到vps 登录成功后将显示如下图中的界面。 （4）使用winscp编辑vps上的文本文件 这里以编辑/etc/php.ini为例演示通过WinSCP编辑文本文件的过程。 首先在目录中找到这个文件，右键单击，选择“编辑”。 开始下载文件，不需要进行操作。 结束编辑后，点击窗口的关闭按钮，并选择保存文件。 注意软件下方的子窗口将显示修改后的文件的上传进度。 （5）使用winscp上传文件到vps （6）使用winscp删除vps上的文件 在目录中找到要删除的文件，右键单击，点击删除。 暧味日志解决Linux中出现Too many open files (7)Linux命令tar压缩排除指定目录的方法 (0)iptables限制同一IP连接数 (3)Linux下替换文件名中的空格 (0)linux修改ssh端口和禁止root远程登陆设置 (5)]]></description>
			<content:encoded><![CDATA[<p><strong>（1）winscp简介</strong></p>
<p>通过WinSCP可以编辑、删除VPS上的文件，和上传文件到VPS。<br />
与FTP不同的是，FTP通过会限制在某一目录中，而使用root通过WinSCP登录后则可以操作系统中的所有文件。</p>
<p>WinSCP的不足之处在于，WinSCP使用SFTP协议进行连接，而通过该连接的通信内容全部是经过加密的，在保证了安全的同时，也降低了传输速度。<br />
所以，通常在FTP操作不了的情况下，才需要使用WinSCP。</p>
<p><strong>（2）安装winscp</strong></p>
<p>首先需要下载该软件。可以到官方网站（http://winscp.net/eng/download.php）通过下载链接下载，也可以直接通过下面的链接进行下载。</p>
<pre>http://cdnetworks-kr-1.dl.sourceforge.net/project/winscp/WinSCP/4.2.8/winscp428setup.exe</pre>
<p>下载后运行安装程序开始安装。文中未提到的设置均默认即可。</p>
<p><span id="more-1369"></span></p>
<p>选择中文<br />
<img src="/wp-content/uploads/2010/10/063006ASK.png" alt="063006ASK 使用WinSCP连接到Linux"  title="使用WinSCP连接到Linux" /></p>
<p>选择安装Notepad++<br />
<img src="/wp-content/uploads/2010/10/063007Tc6.png" alt="063007Tc6 使用WinSCP连接到Linux"  title="使用WinSCP连接到Linux" /></p>
<p>选择Explorer界面<br />
<img src="/wp-content/uploads/2010/10/063007Vll.png" alt="063007Vll 使用WinSCP连接到Linux"  title="使用WinSCP连接到Linux" /></p>
<p>开始安装Notepad++<br />
<img src="/wp-content/uploads/2010/10/063007jCe.png" alt="063007jCe 使用WinSCP连接到Linux"  title="使用WinSCP连接到Linux" /></p>
<p>同样选择中文<br />
<img src="/wp-content/uploads/2010/10/063007Ocw.png" alt="063007Ocw 使用WinSCP连接到Linux"  title="使用WinSCP连接到Linux" /></p>
<p><strong>（3）使用winscp登录到vps</strong></p>
<p><img src="/wp-content/uploads/2010/10/063007ZSx.png" alt="063007ZSx 使用WinSCP连接到Linux"  title="使用WinSCP连接到Linux" /></p>
<p><img src="/wp-content/uploads/2010/10/063007FmQ.png" alt="063007FmQ 使用WinSCP连接到Linux"  title="使用WinSCP连接到Linux" /></p>
<p><img src="/wp-content/uploads/2010/10/063007USx.png" alt="063007USx 使用WinSCP连接到Linux"  title="使用WinSCP连接到Linux" /></p>
<p><img src="/wp-content/uploads/2010/10/063007tCM.png" alt="063007tCM 使用WinSCP连接到Linux"  title="使用WinSCP连接到Linux" /></p>
<p>登录成功后将显示如下图中的界面。<br />
<img src="/wp-content/uploads/2010/10/0630076HS.png" alt="0630076HS 使用WinSCP连接到Linux" width="534" height="379" title="使用WinSCP连接到Linux" /></p>
<p><strong>（4）使用winscp编辑vps上的文本文件</strong></p>
<p>这里以编辑/etc/php.ini为例演示通过WinSCP编辑文本文件的过程。</p>
<p>首先在目录中找到这个文件，右键单击，选择“编辑”。<br />
<img src="/wp-content/uploads/2010/10/063008lWu.png" alt="063008lWu 使用WinSCP连接到Linux" width="534" height="379" title="使用WinSCP连接到Linux" /></p>
<p>开始下载文件，不需要进行操作。<br />
<img src="/wp-content/uploads/2010/10/063008dV9.png" alt="063008dV9 使用WinSCP连接到Linux"  title="使用WinSCP连接到Linux" /></p>
<p>结束编辑后，点击窗口的关闭按钮，并选择保存文件。<br />
<img src="/wp-content/uploads/2010/10/063008k8c.png" alt="063008k8c 使用WinSCP连接到Linux" width="534" height="379" title="使用WinSCP连接到Linux" /></p>
<p>注意软件下方的子窗口将显示修改后的文件的上传进度。<br />
<img src="/wp-content/uploads/2010/10/0630083uI.png" alt="0630083uI 使用WinSCP连接到Linux" width="534" height="379" title="使用WinSCP连接到Linux" /></p>
<p><strong>（5）使用winscp上传文件到vps</strong></p>
<p><img src="/wp-content/uploads/2010/10/063008fad.png" alt="063008fad 使用WinSCP连接到Linux" width="534" height="379" title="使用WinSCP连接到Linux" /></p>
<p>（6）使用winscp删除vps上的文件</p>
<p>在目录中找到要删除的文件，右键单击，点击删除。<br />
<img src="/wp-content/uploads/2010/10/063008Y05.png" alt="063008Y05 使用WinSCP连接到Linux" width="534" height="379" title="使用WinSCP连接到Linux" /></p>
<h2  class="related_post_title">暧味日志</h2><ul class="related_post"><li><a href="http://imcat.in/linux-too-open-files/" title="解决Linux中出现Too many open files">解决Linux中出现Too many open files</a> (7)</li><li><a href="http://imcat.in/linux-tar-exclude/" title="Linux命令tar压缩排除指定目录的方法">Linux命令tar压缩排除指定目录的方法</a> (0)</li><li><a href="http://imcat.in/iptables-limit-number-connections-same-ip/" title="iptables限制同一IP连接数">iptables限制同一IP连接数</a> (3)</li><li><a href="http://imcat.in/linux-replace-the-file-name-space/" title="Linux下替换文件名中的空格">Linux下替换文件名中的空格</a> (0)</li><li><a href="http://imcat.in/linux-change-root-ssh-remote-login-port-and-set-against/" title="linux修改ssh端口和禁止root远程登陆设置">linux修改ssh端口和禁止root远程登陆设置</a> (5)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://imcat.in/use-winscp-connect-linux/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>在Linux系统centos 上安装7-ZIP</title>
		<link>http://imcat.in/linux-system-install-7-zip-centos/</link>
		<comments>http://imcat.in/linux-system-install-7-zip-centos/#comments</comments>
		<pubDate>Thu, 10 Jun 2010 12:22:29 +0000</pubDate>
		<dc:creator>Cat.</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[centos-install-7-ZIP]]></category>

		<guid isPermaLink="false">http://imcat.in/?p=1297</guid>
		<description><![CDATA[刚刚才在centos上安装了RAR, 现在又要在centos上安装7-ZIP,真烦,还好安装步骤都简单: wget http://nchc.dl.sourceforge.net/sourceforge/p7zip/p7zip_4.65_src_all.tar.bz2 tar -xjvf p7zip_4.65_src_all.tar.bz2 cd p7zip_4.65 make make install 看见这些信息就是安装成功了 ./install.sh /usr/local/bin /usr/local/lib/p7zip /usr/local/man /usr/local/share/doc/p7zip - installing /usr/local/bin/7za - installing /usr/local/man/man1/7z.1 - installing /usr/local/man/man1/7za.1 - installing /usr/local/man/man1/7zr.1 - installing /usr/local/share/doc/p7zip/README - installing /usr/local/share/doc/p7zip/ChangeLog - installing HTML help in /usr/local/share/doc/p7zip/DOCS 暧味日志在Linux系统centos上安装RAR (4)centos下添加多个IP地址的方法 (0)Linux命令tar压缩排除指定目录的方法 (0)iptables限制同一IP连接数 (3)Linux下替换文件名中的空格 (0)]]></description>
			<content:encoded><![CDATA[<p>刚刚才在<a href="../linux-system-install-rar-centos/" target="_blank">centos上安装了RAR</a>, 现在又要在centos上安装7-ZIP,真烦,还好安装步骤都简单:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">wget http://nchc.dl.sourceforge.net/sourceforge/p7zip/p7zip_4.65_src_all.tar.bz2<br />
tar -xjvf p7zip_4.65_src_all.tar.bz2<br />
cd p7zip_4.65<br />
make<br />
make install</div></div>
<p><span id="more-1297"></span></p>
<p>看见这些信息就是安装成功了<br />
./install.sh /usr/local/bin /usr/local/lib/p7zip /usr/local/man  /usr/local/share/doc/p7zip<br />
- installing /usr/local/bin/7za<br />
- installing /usr/local/man/man1/7z.1<br />
- installing /usr/local/man/man1/7za.1<br />
- installing /usr/local/man/man1/7zr.1<br />
- installing /usr/local/share/doc/p7zip/README<br />
- installing /usr/local/share/doc/p7zip/ChangeLog<br />
- installing HTML help in /usr/local/share/doc/p7zip/DOCS</p>
<h2  class="related_post_title">暧味日志</h2><ul class="related_post"><li><a href="http://imcat.in/linux-system-install-rar-centos/" title="在Linux系统centos上安装RAR">在Linux系统centos上安装RAR</a> (4)</li><li><a href="http://imcat.in/centos-add-ip-addresses/" title="centos下添加多个IP地址的方法">centos下添加多个IP地址的方法</a> (0)</li><li><a href="http://imcat.in/linux-tar-exclude/" title="Linux命令tar压缩排除指定目录的方法">Linux命令tar压缩排除指定目录的方法</a> (0)</li><li><a href="http://imcat.in/iptables-limit-number-connections-same-ip/" title="iptables限制同一IP连接数">iptables限制同一IP连接数</a> (3)</li><li><a href="http://imcat.in/linux-replace-the-file-name-space/" title="Linux下替换文件名中的空格">Linux下替换文件名中的空格</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://imcat.in/linux-system-install-7-zip-centos/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>在Linux系统centos上安装RAR</title>
		<link>http://imcat.in/linux-system-install-rar-centos/</link>
		<comments>http://imcat.in/linux-system-install-rar-centos/#comments</comments>
		<pubDate>Thu, 10 Jun 2010 08:33:10 +0000</pubDate>
		<dc:creator>Cat.</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[centos install RAR]]></category>
		<category><![CDATA[RAR]]></category>

		<guid isPermaLink="false">http://imcat.in/?p=1296</guid>
		<description><![CDATA[由于最近弄了个计划,不得不使用RAR,所以要在centos上安装RAR,记录如下: wget http://www.rarsoft.com/rar/rarlinux-3.9.3.tar.gz tar -xvf rarlinux-3.9.3.tar.gz cd rar make 看见下面这些信息就是安装成功了 mkdir -p /usr/local/bin mkdir -p /usr/local/lib cp rar unrar /usr/local/bin cp rarfiles.lst /etc cp default.sfx /usr/local/lib 但是我在运行命令rar时,出现下面这个问题, rar: /lib/i686/nosegneg/libc.so.6: version `GLIBC_2.7' not found (required by rar) Google下,解决办法是 cp rar_static /usr/local/bin/rar 这样就OK了. BTW 注册RAR,可以将注册文件 key 复制到你的 /etc 目录即可就OK了 暧味日志在Linux系统centos 上安装7-ZIP (11)centos下添加多个IP地址的方法 (0)Linux命令tar压缩排除指定目录的方法 (0)iptables限制同一IP连接数 (3)Linux下替换文件名中的空格 (0)]]></description>
			<content:encoded><![CDATA[<p>由于最近弄了个计划,不得不使用RAR,所以要在centos上安装RAR,记录如下:</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">wget http://www.rarsoft.com/rar/rarlinux-3.9.3.tar.gz<br />
tar -xvf rarlinux-3.9.3.tar.gz<br />
cd rar<br />
make</div></div>
<p>看见下面这些信息就是安装成功了<br />
mkdir -p /usr/local/bin<br />
mkdir -p /usr/local/lib<br />
cp rar unrar /usr/local/bin<br />
cp rarfiles.lst /etc<br />
cp default.sfx /usr/local/lib<br />
<span id="more-1296"></span><br />
但是我在运行命令rar时,出现下面这个问题,</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">rar: /lib/i686/nosegneg/libc.so.6: version `GLIBC_2.7' not found (required by rar)</div></div>
<p>Google下,解决办法是</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">cp rar_static /usr/local/bin/rar</div></div>
<p>这样就OK了.</p>
<p>BTW<br />
注册RAR,可以将注册文件 key 复制到你的 /etc 目录即可就OK了</p>
<h2  class="related_post_title">暧味日志</h2><ul class="related_post"><li><a href="http://imcat.in/linux-system-install-7-zip-centos/" title="在Linux系统centos 上安装7-ZIP">在Linux系统centos 上安装7-ZIP</a> (11)</li><li><a href="http://imcat.in/centos-add-ip-addresses/" title="centos下添加多个IP地址的方法">centos下添加多个IP地址的方法</a> (0)</li><li><a href="http://imcat.in/linux-tar-exclude/" title="Linux命令tar压缩排除指定目录的方法">Linux命令tar压缩排除指定目录的方法</a> (0)</li><li><a href="http://imcat.in/iptables-limit-number-connections-same-ip/" title="iptables限制同一IP连接数">iptables限制同一IP连接数</a> (3)</li><li><a href="http://imcat.in/linux-replace-the-file-name-space/" title="Linux下替换文件名中的空格">Linux下替换文件名中的空格</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://imcat.in/linux-system-install-rar-centos/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>让crontab不再发出告警邮件</title>
		<link>http://imcat.in/let-crontab-not-to-issue-any-warning-messages/</link>
		<comments>http://imcat.in/let-crontab-not-to-issue-any-warning-messages/#comments</comments>
		<pubDate>Wed, 16 Dec 2009 13:40:23 +0000</pubDate>
		<dc:creator>Cat.</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[cron]]></category>
		<category><![CDATA[crontab]]></category>

		<guid isPermaLink="false">http://imcat.in/%e8%ae%a9crontab%e4%b8%8d%e5%86%8d%e5%8f%91%e5%87%ba%e5%91%8a%e8%ad%a6%e9%82%ae%e4%bb%b6/</guid>
		<description><![CDATA[一直用自动备份mysql数据库并发送到Email , 但cron程序默认设置是,每执行一次命令就会给本地用户发送一次邮件，这个是很烦人的!!!!所以我要禁掉它，解决方法有如下一些： 1.将执行命令的信息重定向到 cron_command &#62;/dev/null 2&#62;&#38;1 2.将执行命令的信息重定向到 cron_command &#38;&#62;/dev/null 3.在crontab设置文件中指定发送到得邮件 MAILTO="" cron_command 暧味日志Linux命令tar压缩排除指定目录的方法 (0)iptables限制同一IP连接数 (3)Linux下替换文件名中的空格 (0)linux修改ssh端口和禁止root远程登陆设置 (5)使用WinSCP连接到Linux (3)]]></description>
			<content:encoded><![CDATA[<p>一直用<a title="Permanent Link to 自动备份mysql数据库并发送到Email" rel="bookmark" href="http://imcat.in/backup-mysql-databases-automatically-sent-to-email/">自动备份mysql数据库并发送到Email</a> , 但cron程序默认设置是,每执行一次命令就会给本地用户发送一次邮件，这个是很烦人的!!!!所以我要禁掉它，解决方法有如下一些：</p>
<blockquote><p>1.将执行命令的信息重定向到<br />
cron_command &gt;/dev/null 2&gt;&amp;1</p>
<p>2.将执行命令的信息重定向到<br />
cron_command &amp;&gt;/dev/null</p>
<p>3.在crontab设置文件中指定发送到得邮件<br />
MAILTO=""<br />
cron_command</p></blockquote>
<h2  class="related_post_title">暧味日志</h2><ul class="related_post"><li><a href="http://imcat.in/linux-tar-exclude/" title="Linux命令tar压缩排除指定目录的方法">Linux命令tar压缩排除指定目录的方法</a> (0)</li><li><a href="http://imcat.in/iptables-limit-number-connections-same-ip/" title="iptables限制同一IP连接数">iptables限制同一IP连接数</a> (3)</li><li><a href="http://imcat.in/linux-replace-the-file-name-space/" title="Linux下替换文件名中的空格">Linux下替换文件名中的空格</a> (0)</li><li><a href="http://imcat.in/linux-change-root-ssh-remote-login-port-and-set-against/" title="linux修改ssh端口和禁止root远程登陆设置">linux修改ssh端口和禁止root远程登陆设置</a> (5)</li><li><a href="http://imcat.in/use-winscp-connect-linux/" title="使用WinSCP连接到Linux">使用WinSCP连接到Linux</a> (3)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://imcat.in/let-crontab-not-to-issue-any-warning-messages/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Suhosin - 保护你的PHP</title>
		<link>http://imcat.in/suhosin-protect-your-php/</link>
		<comments>http://imcat.in/suhosin-protect-your-php/#comments</comments>
		<pubDate>Fri, 11 Dec 2009 03:23:19 +0000</pubDate>
		<dc:creator>Cat.</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Suhosin]]></category>

		<guid isPermaLink="false">http://imcat.in/suhosin-%e4%bf%9d%e6%8a%a4%e4%bd%a0%e7%9a%84php/</guid>
		<description><![CDATA[Suhosin 我是在无意中发现的, 上次在 debian 用自动安装PHP,安装完后发现被安装了 Hardened-PHP Project .Google下,原来这个东西叫 Suhosin ,朝鲜语,译音为 "保护神" . Suhosin的作用大概是: 保护服务器和已知或未知的缺陷,类似内存泄漏等等吧 解决php的“远程文件包含”带来的安全隐患,例如PHP禁止allow_url_fopen选项,但不能彻底禁止通过PHP的攻击,Suhosin就修补了这个缺憾. 可使用额外的配置来禁止一些php中可能带来安全隐患的功能 另外,Suhosin是兼容ZendOptimizer 的 我英语不好,如果你英语好的去官网看看:Suhosin .不废话了,说说安装方法吧 首先去下载PHP版本对应的Suhosin补丁:http://www.hardened-php.net/suhosin/download.html 我的是PHP 5.2.11 所以我下载的是 suhosin-patch-5.2.11 解压suhosin-patch-5.2.11: gzip -d ./suhosin-patch-5.2.11-0.9.7.patch.gz 进入php源代码目录打上补丁： gzip -cd php-5.2.11-fpm-0.5.13.diff.gz &#124; patch -d php-5.2.11 -p1 cd php-5.2.11 patch -p 1 -i ../suhosin-patch-5.2.11-0.9.7.patch 因为我要安装phpfpm,所以将补丁一起打上.. 接着重建php的configure脚本 ./buildconf --force 然后编译安装 ./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config [...]]]></description>
			<content:encoded><![CDATA[<p>Suhosin 我是在无意中发现的, 上次在 <a href="http://imcat.in/debian-install-nginx-php-spawn-fcgi-mysql/">debian</a> 用自动安装PHP,安装完后发现被安装了 <a href="http://www.hardened-php.net/">Hardened-PHP Project</a> .Google下,原来这个东西叫 Suhosin ,朝鲜语,译音为 "保护神" .</p>
<p>Suhosin的作用大概是:</p>
<blockquote><p>保护服务器和已知或未知的缺陷,类似内存泄漏等等吧<br />
解决php的“远程文件包含”带来的安全隐患,例如PHP禁止allow_url_fopen选项,但不能彻底禁止通过PHP的攻击,Suhosin就修补了这个缺憾.<br />
可使用额外的配置来禁止一些php中可能带来安全隐患的功能<br />
另外,Suhosin是兼容ZendOptimizer 的</p></blockquote>
<p>我英语不好,如果你英语好的去官网看看:<a href="http://www.hardened-php.net/suhosin.127.html">Suhosin</a> .不废话了,说说安装方法吧</p>
<p><span id="more-1052"></span></p>
<p>首先去下载PHP版本对应的Suhosin补丁:http://www.hardened-php.net/suhosin/download.html</p>
<p>我的是PHP 5.2.11 所以我下载的是 suhosin-patch-5.2.11</p>
<p>解压suhosin-patch-5.2.11:</p>
<blockquote><p>gzip -d ./suhosin-patch-5.2.11-0.9.7.patch.gz</p></blockquote>
<p>进入php源代码目录打上补丁：</p>
<blockquote><p>
gzip -cd php-5.2.11-fpm-0.5.13.diff.gz | patch -d php-5.2.11 -p1<br />
cd php-5.2.11<br />
patch -p 1 -i ../suhosin-patch-5.2.11-0.9.7.patch
</p></blockquote>
<p>因为我要安装phpfpm,所以将补丁一起打上..</p>
<p>接着重建php的configure脚本</p>
<blockquote><p>./buildconf --force</p></blockquote>
<p>然后编译安装</p>
<blockquote><p>./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-iconv-dir=/usr/local --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-discard-path --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --with-curlwrappers --enable-mbregex --enable-fastcgi --enable-fpm --enable-force-cgi-redirect --enable-mbstring --with-mcrypt --with-gd --enable-gd-native-ttf --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-ftp --enable-suhosin<br />
make ZEND_EXTRA_LIBS='-liconv'<br />
make install</p></blockquote>
<p>等php编译完成以后，重新php进程或者重启服务器,如果你看到下面这个图，那么恭喜你，守护神已经正常工作了：<br />
<a href="/wp-content/uploads/2009/12/suhosin.jpg"><img class="alignnone size-full wp-image-1051" title="suhosin" src="/wp-content/uploads/2009/12/suhosin.jpg" alt="suhosin Suhosin   保护你的PHP" width="422" height="33" /></a></p>
<p>对于已经编译了的PHP程序,只需要重新编译一次就OK:</p>
<blockquote><p>./configure --enable-suhosin --with-what-you-want<br />
make ZEND_EXTRA_LIBS='-liconv'<br />
make install</p></blockquote>
<p><span style="color: #ff0000;">对了,转载的请注明个链接,我发现我一篇<a title="安装apc为php加速" href="../apc-for-php-installed-to-speed-up/">安装apc为php加速</a>被人转载了N次,没加链接的,虽然我不介意.</span></p>
<h2  class="related_post_title">暧味日志</h2><ul class="related_post"><li><a href="http://imcat.in/debian-install-nginx-php-spawn-fcgi-mysql/" title="debian安装nginx+php(spawn-fcgi)+mysql">debian安装nginx+php(spawn-fcgi)+mysql</a> (10)</li><li><a href="http://imcat.in/apc-for-php-installed-to-speed-up/" title="安装apc为php加速">安装apc为php加速</a> (14)</li><li><a href="http://imcat.in/the-latest-linux-under-nginx-mysql-php-memcache-vsftpd-one-click-installation-package/" title="最新Linux下的Nginx+MySQL+PHP+Memcache+Vsftpd一键安装包">最新Linux下的Nginx+MySQL+PHP+Memcache+Vsftpd一键安装包</a> (36)</li><li><a href="http://imcat.in/linux-tar-exclude/" title="Linux命令tar压缩排除指定目录的方法">Linux命令tar压缩排除指定目录的方法</a> (0)</li><li><a href="http://imcat.in/iptables-limit-number-connections-same-ip/" title="iptables限制同一IP连接数">iptables限制同一IP连接数</a> (3)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://imcat.in/suhosin-protect-your-php/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>vsFTPD 快速安装配置</title>
		<link>http://imcat.in/vsftpd-quick-installation-and-configuration/</link>
		<comments>http://imcat.in/vsftpd-quick-installation-and-configuration/#comments</comments>
		<pubDate>Wed, 02 Dec 2009 07:06:34 +0000</pubDate>
		<dc:creator>Cat.</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Vsftpd]]></category>

		<guid isPermaLink="false">http://imcat.in/?p=1049</guid>
		<description><![CDATA[安装： CentOS: yum install vsftpd Debian: apt-get install vsftpd 配置： vi /etc/vsftpd.conf 禁止匿名用户登录： anonymous_enable=NO 允许系统用户登录： local_enable=YES 开启写权限： write_enable=YES 设置掩码： local_umask=022 如果觉得默认的空闲时间太短，可以设置的久一点： idle_session_timeout=3600 data_connection_timeout=3600 把 ftp 用户限制在自己的主目录： chroot_local_user=YES 未指定用户 shell 会导致 "530 Login incorrect" 错误： vi /etc/passwd www:x:33:33:www:/home:/bin/false 把 shell 改为 /bin/sh 暧味日志最新Linux下的Nginx+MySQL+PHP+Memcache+Vsftpd一键安装包 (36)Linux命令tar压缩排除指定目录的方法 (0)iptables限制同一IP连接数 (3)Linux下替换文件名中的空格 (0)linux修改ssh端口和禁止root远程登陆设置 (5)]]></description>
			<content:encoded><![CDATA[<p>安装：<br />
CentOS:<br />
yum install vsftpd</p>
<p>Debian:<br />
apt-get install vsftpd</p>
<p>配置：<br />
vi /etc/vsftpd.conf</p>
<p>禁止匿名用户登录：<br />
anonymous_enable=NO</p>
<p>允许系统用户登录：<br />
local_enable=YES</p>
<p>开启写权限：<br />
write_enable=YES</p>
<p>设置掩码：<br />
local_umask=022</p>
<p><span id="more-1049"></span></p>
<p>如果觉得默认的空闲时间太短，可以设置的久一点：<br />
idle_session_timeout=3600<br />
data_connection_timeout=3600</p>
<p>把 ftp 用户限制在自己的主目录：<br />
chroot_local_user=YES</p>
<p>未指定用户 shell 会导致 "530 Login incorrect" 错误：<br />
vi /etc/passwd<br />
www:x:33:33:www:/home:/bin/false<br />
把 shell 改为 /bin/sh</p>
<h2  class="related_post_title">暧味日志</h2><ul class="related_post"><li><a href="http://imcat.in/the-latest-linux-under-nginx-mysql-php-memcache-vsftpd-one-click-installation-package/" title="最新Linux下的Nginx+MySQL+PHP+Memcache+Vsftpd一键安装包">最新Linux下的Nginx+MySQL+PHP+Memcache+Vsftpd一键安装包</a> (36)</li><li><a href="http://imcat.in/linux-tar-exclude/" title="Linux命令tar压缩排除指定目录的方法">Linux命令tar压缩排除指定目录的方法</a> (0)</li><li><a href="http://imcat.in/iptables-limit-number-connections-same-ip/" title="iptables限制同一IP连接数">iptables限制同一IP连接数</a> (3)</li><li><a href="http://imcat.in/linux-replace-the-file-name-space/" title="Linux下替换文件名中的空格">Linux下替换文件名中的空格</a> (0)</li><li><a href="http://imcat.in/linux-change-root-ssh-remote-login-port-and-set-against/" title="linux修改ssh端口和禁止root远程登陆设置">linux修改ssh端口和禁止root远程登陆设置</a> (5)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://imcat.in/vsftpd-quick-installation-and-configuration/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

