<?xml version="1.0" encoding="gb2312"?>
<?xml-stylesheet href="http://blog.itpub.net//styles/rss.css" type="text/css"?>

<rdf:RDF 
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
  xmlns="http://my.netscape.com/rdf/simple/0.9/"
>
    
     <channel>
  <title>wzs_bj</title>
  <link>http://wangzhensheng.itpub.net</link>
  <description></description>
 </channel>
    <item>
<title>linux_web_中间建_数据库安装配置</title>
<description>web_中间建_数据库_安装配置 安装部署文档 RedHat 安装:1. 安装要求:lvm管理方式 分区方式: 1):/ 4000M 2):swap(MEM&lt;4096) =MEM * 2 (MEM&gt;4096) =MEM 3):/user 12000M 4):/home 10000M 5):/var 4000M 6):/app 剩余空间 配置SSH安全:1) 关闭ssh底版本兼容#Protocol 2,1 ---&gt; Protocol 22) 禁止root远程登陆 #PermitRootLogin yes --&gt; PermitRootLogin no3) 重启sshdService sshd restart 操作系统保留服务:1) auditd 2) crond3) network4) psacct5) rsync6) sshd7) syslog8) sysstat9) xinetd配置操作系统审计1) 启动帐号空间审计service a...</description>
<link>http://wangzhensheng.itpub.net/post/28229/468620</link>
<pubDate>Tue,12 08 2008 15:50:05</pubDate>
</item>
<item>
<title>linux_rsyncd.conf</title>
<description>uid = tomcatgid = appmax connections = 50pid file = /var/run/rsyncd.pidlock file = /var/run/rsyncd.locklog file = /var/log/rsyncd.log[lt]path = /app/tomcat/webapps/ltcomment = read only = no[ehall]path = /app/tomcat/webapps/lt/ehallcomment = read only = no[config]path = /appcomment = read only = nouid = tomcatgid = appmax connections = 50pid file = /var/run/rsyncd.pidlock file = /var/run/rsyncd.locklog file = /var/log/rsyncd.log[lt]path = /app/tomcat/webapps/ltcomment = read only = no[ehall]path...</description>
<link>http://wangzhensheng.itpub.net/post/28229/467547</link>
<pubDate>Mon,28 07 2008 15:15:30</pubDate>
</item>
<item>
<title>solaris_批量替换指定字符串_find_xargs_grep</title>
<description>==========================#!/bin/shapps_dir='/tmp/ddd/fj'cd ${apps_dir}/while read strs do echo ${strs} find ./ -type f | xargs perl -pi -e &quot;s|href=&quot;${strs}|href=&quot;/|g&quot; find ./ -type f | xargs perl -pi -e &quot;s|href=&quot; ${strs}|href=&quot;/|g&quot; find ./ -type f | xargs perl -pi -e &quot;s|src=&quot;${strs}|src=&quot;/|g&quot; done &lt; /tmp/ddd/string_file==========================#!/bin/shapps_dir='/tmp/ddd/fj'cd ${apps_dir}/while read strs do echo ${strs} find ./ -type f | xargs perl -pi -e &quot;s|href=&quot;${strs}|href=&quot;/|g&quot; find ./ -t...</description>
<link>http://wangzhensheng.itpub.net/post/28229/467138</link>
<pubDate>Tue,22 07 2008 19:14:29</pubDate>
</item>
<item>
<title>linux_scritp_apache日志中IP地址记录</title>
<description>#!/bin/bashLANG=en.USD=`date +&quot;%Y%m%d&quot;`LOG=&quot;/app/apache/logs/web-$1.log&quot;cat ${LOG}| awk '{print $1}' | sort | uniq -c | sort -rn&gt;./countIP_${1}.logexit 1#!/bin/bashLANG=en.USD=`date +&quot;%Y%m%d&quot;`LOG=&quot;/app/apache/logs/web-$1.log&quot;cat ${LOG}| awk '{print $1}' | sort | uniq -c | sort -rn&gt;./countIP_${1}.logexit 1</description>
<link>http://wangzhensheng.itpub.net/post/28229/466786</link>
<pubDate>Thu,17 07 2008 23:56:51</pubDate>
</item>
<item>
<title>linux_script_批量搜索指定串并取关键子</title>
<description>find ./ -type f | grep -v 'http://www.xxx.com| grep -iv 'gif' | grep -v 'WEB-INF' | grep -v 'logs' | xargs grep 'www.yyy.com.cn' | awk -F[&quot;] 'print $2' | sort | uniq -c | awk -F[//] '{print $2}' &gt;/tmp/tmp.logfind ./ -type f | grep -v 'http://www.xxx.com| grep -iv 'gif' | grep -v 'WEB-INF' | grep -v 'logs' | xargs grep 'www.yyy.com.cn' | awk -F[&quot;] 'print $2' | sort | uniq -c | awk -F[//] '{print $2}' &gt;/tmp/tmp.log</description>
<link>http://wangzhensheng.itpub.net/post/28229/466741</link>
<pubDate>Thu,17 07 2008 13:08:01</pubDate>
</item>
<item>
<title>linux_perl批量替换文件</title>
<description>find ./ -type f | xargs perl -pi -e 's|old_strings|new_strings|g'find ./ -type f | xargs perl -pi -e 's|old_strings|new_strings|g'</description>
<link>http://wangzhensheng.itpub.net/post/28229/466610</link>
<pubDate>Tue,15 07 2008 17:36:56</pubDate>
</item>
<item>
<title>solaris 9_xargs grep递归</title>
<description>find ./ -type f -print | xargs file | grep text |sed -e &quot;s/:.*//&quot; | xargs -i grep -l '^M' {} &gt; resultM.file while read LINE do chmod 755 $LINE dos2unix $LINE $LINE done &lt; resultM.file==========================递归查找字符find ./sso/ -type f |grep -v 'log'|grep -v 'tar'| grep -v 'jpg'| grep -v 'JPG'|xargs grep -n 'www.sohu.com'&gt;/tmp/www.sohu.com ===============================#!/bin/shDIR=&quot;$1&quot;file=&quot;`echo $USER`&quot;file_1=&quot;`basename ${DIR}`&quot;find &quot;${DIR}&quot; -type f | xargs grep -n 'http://' | grep -v 'B...</description>
<link>http://wangzhensheng.itpub.net/post/28229/466456</link>
<pubDate>Mon,14 07 2008 14:55:53</pubDate>
</item>
<item>
<title>linux_sed替换特殊符号</title>
<description>1.sed 替换单引号sed 's/'200/'300/g' a.txt改成sed &quot;s/'200/'300/g&quot; a.txt2.sed替换变量sed 's/$a/$b/g' a.txt改成sed &quot;s/$a/$d/g&quot; a.txt</description>
<link>http://wangzhensheng.itpub.net/post/28229/465424</link>
<pubDate>Tue,01 07 2008 12:54:33</pubDate>
</item>
<item>
<title>apache_httpd.conf_重定向到其它网址</title>
<description>Redirect / &quot;http://124.42.1.138/&quot;ac</description>
<link>http://wangzhensheng.itpub.net/post/28229/465077</link>
<pubDate>Fri,27 06 2008 09:08:36</pubDate>
</item>
<item>
<title>oracle job_相关</title>
<description>select job,last_date,last_sec,next_date,next_sec,broken,failures from user_jobs; 启动:exec dbms_job.run(1);删除:exec dbms_job.remove(1);停止:exec dbms_job.broken(1,false);select job,last_date,last_sec,next_date,next_sec,broken,failures from user_jobs; 启动:exec dbms_job.run(1);删除:exec dbms_job.remove(1);停止:exec dbms_job.broken(1,false);</description>
<link>http://wangzhensheng.itpub.net/post/28229/463428</link>
<pubDate>Mon,02 06 2008 18:11:17</pubDate>
</item>
 </rdf:RDF>


