<?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>PHPMan--Live and learn &#187; system related</title>
	<atom:link href="http://www.phpman.com.cn/archives/category/system-related/feed" rel="self" type="application/rss+xml" />
	<link>http://www.phpman.com.cn</link>
	<description>不积跬步,无以至千里;不积小流,无以成江海</description>
	<lastBuildDate>Wed, 28 Jul 2010 02:39:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>ssh默认用户更改</title>
		<link>http://www.phpman.com.cn/archives/355</link>
		<comments>http://www.phpman.com.cn/archives/355#comments</comments>
		<pubDate>Mon, 12 Jul 2010 02:48:47 +0000</pubDate>
		<dc:creator>phpman</dc:creator>
				<category><![CDATA[system related]]></category>

		<guid isPermaLink="false">http://www.phpman.com.cn/?p=355</guid>
		<description><![CDATA[经常有这样的经历: 在使用ssh连接远程服务器时，如果ssh serverhost会以当前用户去连接，远程的默认登录帐号变成本地的当前用户，修改~/.ssh/config 文件，里面加上

user root

可以更改默认登录帐号为root，省去了必需指定用户登录方式(root@serverhost)的麻烦
]]></description>
		<wfw:commentRss>http://www.phpman.com.cn/archives/355/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>linux下lftp工具使用</title>
		<link>http://www.phpman.com.cn/archives/352</link>
		<comments>http://www.phpman.com.cn/archives/352#comments</comments>
		<pubDate>Tue, 29 Jun 2010 15:14:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[system related]]></category>
		<category><![CDATA[lftp]]></category>

		<guid isPermaLink="false">http://www.phpman.com.cn/?p=352</guid>
		<description><![CDATA[有时候需要在linux下批量上传一些文件或整个目录到远程FTP，由于ftp本身不支持整个目录的上传，因此可以使用lftp
用法如下
lftp ftp://username:password@somehost
登录后进入lftp提示符下
常见系统命令ls rm mkdir等都可在这使用
上传目录可用
mirror -R [remote] [local]
批量下载可用mget
批量上传可用mput
具体用法及其它指令可用help查看
]]></description>
		<wfw:commentRss>http://www.phpman.com.cn/archives/352/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>linux下批量正则查找替换文本文件内容</title>
		<link>http://www.phpman.com.cn/archives/337</link>
		<comments>http://www.phpman.com.cn/archives/337#comments</comments>
		<pubDate>Tue, 02 Mar 2010 15:35:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[system related]]></category>
		<category><![CDATA[正则语法]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[正则]]></category>

		<guid isPermaLink="false">http://www.phpman.com.cn/?p=337</guid>
		<description><![CDATA[
find -name '*.html' &#124; xargs perl -pi -e 's&#124;href=&#34;(.*\.html)&#34;&#124;href=&#34;/html/$1&#34;&#124;g'

如上所示为我在所有形如xxx.html前加上/html/
正则查找，非常灵活方便。留帖备忘
]]></description>
		<wfw:commentRss>http://www.phpman.com.cn/archives/337/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>apache+subversion+dav 构建基于http的svn服务</title>
		<link>http://www.phpman.com.cn/archives/303</link>
		<comments>http://www.phpman.com.cn/archives/303#comments</comments>
		<pubDate>Tue, 17 Nov 2009 07:52:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[system related]]></category>

		<guid isPermaLink="false">http://www.phpman.com.cn/?p=303</guid>
		<description><![CDATA[昨天将服务器配置了svn服务,现作整理(以centos linux为例)，以作备忘。
1.安装基本软件

yum install subversion subversion-tools
yum install libapache2-svn mod_dav_svn

2.创建版本库
假定我们将版本库存放在/data/svn/repos

mkdir -p /data/svn/repos
cd /data/svn/repos
svnadmin create test

如果要导入一些已有的代码,假定/data/www/test有一些写好的代码要导入到库中

svn import file:///data/www/test /data/svn/repos/test

这里导入成功后版本为1
3. 修改/etc/httpd/conf.d/svbversion.conf
(该文件在安装mod_dav_svn后自动产生)
取消注释以下行

LoadModule dav_svn_module     modules/mod_dav_svn.so
LoadModule authz_svn_module   modules/mod_authz_svn.so
&#60;Location /repos&#62;
   DAV svn 
   SVNParentPath /data/svn/repos
#   &#60;LimitExcept GET PROPFIND OPTIONS REPORT&#62;
      # Require SSL connection for password [...]]]></description>
		<wfw:commentRss>http://www.phpman.com.cn/archives/303/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>初试手了下bash编程,定期清除日志</title>
		<link>http://www.phpman.com.cn/archives/289</link>
		<comments>http://www.phpman.com.cn/archives/289#comments</comments>
		<pubDate>Wed, 21 Oct 2009 06:38:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[shell]]></category>
		<category><![CDATA[system related]]></category>
		<category><![CDATA[bash]]></category>

		<guid isPermaLink="false">http://www.phpman.com.cn/?p=289</guid>
		<description><![CDATA[由于公司网站的日志文件按天为目录存放，格式如下
20090901
20090902
……
时间一长，硬盘老暴满，正好前些天看过点shell的知识，应用一下^_^

#!/bin/bash
#日志保留月份数
reserveMonth=2
#需保存的最早一天的日志
oldest=`date -d &#34;-$reserveMonth month&#34; +%Y%m%d`
#日志存放目录
workdir='/home/phpman/test'
#搜索目录
dirs=`ls $workdir -F &#124; grep -P '\d{8}/' &#124; sed 's/.$//'`
for i in $dirs;do
#早于最早那天的，删除
    if test $i -le $oldest
    then
        tmp_dir=${workdir}/$i
#记录此次操作的记录
        echo &#34;Directory '$tmp_dir' deleted at `date '+%Y-%m-%d %H:%M:%S'`&#34; &#62;&#62; ${workdir}/delete.log
  [...]]]></description>
		<wfw:commentRss>http://www.phpman.com.cn/archives/289/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ubuntu下免输密码自动连远程主机</title>
		<link>http://www.phpman.com.cn/archives/268</link>
		<comments>http://www.phpman.com.cn/archives/268#comments</comments>
		<pubDate>Tue, 01 Sep 2009 01:18:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[system related]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.phpman.com.cn/?p=268</guid>
		<description><![CDATA[使用putty的用户都知道，可以使用-l -pw参数设置快捷方式，以自动连接至远程主机,也可以用key方式 。
ubuntu下要用终端terminal自动连，也可以实现。首先装sshpass，apt-get就可以了。
然后在system-&#62;preferences-&#62;main menu里加一个new item项，其中command写上gnome-terminal &#8211;command &#8217;sshpass -p pass ssh user@anyhost&#8217;就可以了。怎么样，很方便吧^_^
当然，putty亦有linux版的～
]]></description>
		<wfw:commentRss>http://www.phpman.com.cn/archives/268/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Linux中使用dmidecode查看硬件信息</title>
		<link>http://www.phpman.com.cn/archives/265</link>
		<comments>http://www.phpman.com.cn/archives/265#comments</comments>
		<pubDate>Fri, 28 Aug 2009 06:11:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[system related]]></category>

		<guid isPermaLink="false">http://www.phpman.com.cn/?p=265</guid>
		<description><![CDATA[使用dmidecode可以查看系统各硬件的详细信息CPU，各级缓存，内存，板载插口等信息

如我使用dmidecode &#124; grep -A16 "Memory Device$"查看内存信息]]></description>
		<wfw:commentRss>http://www.phpman.com.cn/archives/265/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ssh连接慢解决方法</title>
		<link>http://www.phpman.com.cn/archives/257</link>
		<comments>http://www.phpman.com.cn/archives/257#comments</comments>
		<pubDate>Fri, 17 Jul 2009 09:06:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[system related]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.phpman.com.cn/?p=257</guid>
		<description><![CDATA[使用kde的konsole连接局域网内服务器慢，今用ssh -v 看了下,发现是
debug1: Next authentication method: gssapi-with-mic
一直等待。原来/etc/ssh/ssh_config中GSSAPIAuthentication选项被配置成yes后,会发起一个_kerberos.&#60;hostname&#62;的GSSAPI认证请求,这样，ssh会一直等待至GSS认证超时失败。所以等待了很久。
解决办法，将该选项置为no
 GSSAPIAuthentication no
至于GSSAPI认证具体访式，有待以后研究 
sshd配置参考http://lamp.linux.gov.cn/OpenSSH/sshd_config.html
]]></description>
		<wfw:commentRss>http://www.phpman.com.cn/archives/257/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>rsync 详细说明(转)</title>
		<link>http://www.phpman.com.cn/archives/251</link>
		<comments>http://www.phpman.com.cn/archives/251#comments</comments>
		<pubDate>Wed, 01 Jul 2009 01:46:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[system related]]></category>
		<category><![CDATA[rsync]]></category>

		<guid isPermaLink="false">http://www.phpman.com.cn/?p=251</guid>
		<description><![CDATA[rsync是一个功能非常强大的工具，其命令也有很多功能特色选项，
我们下面就对它的选项一一进行分析说明。]]></description>
		<wfw:commentRss>http://www.phpman.com.cn/archives/251/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>将linux文件同步至windows下实现自动备份</title>
		<link>http://www.phpman.com.cn/archives/245</link>
		<comments>http://www.phpman.com.cn/archives/245#comments</comments>
		<pubDate>Tue, 23 Jun 2009 12:47:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[system related]]></category>
		<category><![CDATA[rsync]]></category>

		<guid isPermaLink="false">http://www.phpman.com.cn/?p=245</guid>
		<description><![CDATA[对站长来说，丢失数据又没得恢复绝对是恶梦……因此，想到将linux下的数据库和www目录自动备份，因为有win主机闲置，那就存它那了。闲话少说，现在开工:
首先给win主机安装cwrsync(基于cgwin和rsync的同步软件)
…………]]></description>
		<wfw:commentRss>http://www.phpman.com.cn/archives/245/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
