<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[SelBoo's Blog 色萝卜]]></title> 
<link>http://selboo.com.cn/index.php</link> 
<description><![CDATA[简单记录,方便自己,服务大众...]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[SelBoo's Blog 色萝卜]]></copyright>
<item>
<link>http://selboo.com.cn/post/821/</link>
<title><![CDATA[rpm打包利器rpm_create简介]]></title> 
<author>selboo &lt;root@selboo.com.cn&gt;</author>
<category><![CDATA[Linux]]></category>
<pubDate>Wed, 08 Sep 2010 02:56:56 +0000</pubDate> 
<guid>http://selboo.com.cn/post/821/</guid> 
<description>
<![CDATA[ 
	<br/><br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;RPM是Redhat Package Manager的简称，是由redhat公司研制，用在Linux系统下的系统包管理工具。RPM包目的：是使软件包的安装和卸载过程更容易，简化软件包的建立分发过程，并能用于不同的体系结构，RPM系统已成为现在Linux系统下包管理工具事实上的标准，并且已经移植到很多商业的unix系统之下。<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rpm打包可以通过编写spec文件，使用rpmbuild来完成一个rpm的打包。<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;使用spec文件的方式打包，对于初学者最难理解的是install和file节点编写的关系，并且复杂的是，还需要学习spec语言中特有的语法和环境变量关系。其次是打包过程，打rpm包前需要先把打包的内容，打成tar.gz的包，然后拷贝到rpmbuild的源码目录内，大部分是/usr/src/redhat/SOU<br/>............<br/><br/>Tags - <a href="http://selboo.com.cn/tags/linux/" rel="tag">linux</a> , <a href="http://selboo.com.cn/tags/rpm/" rel="tag">rpm</a>
]]>
</description>
</item><item>
<link>http://selboo.com.cn/post/818/</link>
<title><![CDATA[linux shell快捷键]]></title> 
<author>selboo &lt;root@selboo.com.cn&gt;</author>
<category><![CDATA[Linux]]></category>
<pubDate>Tue, 07 Sep 2010 02:33:54 +0000</pubDate> 
<guid>http://selboo.com.cn/post/818/</guid> 
<description>
<![CDATA[ 
	切到命令行开始｜结尾<br/># Ctrl + A - Go to the beginning of the line you are currently typing on<br/># Ctrl + E - Go to the end of the line you are currently typing on<br/><br/>清屏，类似于 clear 命令<br/># Ctrl + L - Clears the Screen, similar to the clear command<br/><br/>清除光标以前<br/># Ctrl + U - Clears the line before the cursor position. If you are at the end of the line, clears the entire line.<br/><br/>退格键 backspace<br/># Ctrl + H - Same as backspace<br/><br/>从命令历史中找<br/># Ctrl + R - Let’s you search throug<br/>............<br/><br/>Tags - <a href="http://selboo.com.cn/tags/shell/" rel="tag">shell</a> , <a href="http://selboo.com.cn/tags/linux/" rel="tag">linux</a> , <a href="http://selboo.com.cn/tags/%25E5%25BF%25AB%25E6%258D%25B7%25E9%2594%25AE/" rel="tag">快捷键</a>
]]>
</description>
</item><item>
<link>http://selboo.com.cn/post/815/</link>
<title><![CDATA[shc 加密Shell 脚本]]></title> 
<author>selboo &lt;root@selboo.com.cn&gt;</author>
<category><![CDATA[Linux]]></category>
<pubDate>Wed, 01 Sep 2010 01:41:23 +0000</pubDate> 
<guid>http://selboo.com.cn/post/815/</guid> 
<description>
<![CDATA[ 
	<br/><br/><br/><strong>下载安装 shc</strong><br/>wget ftp://ftp.pbone.net/mirror/ftp.freshrpms.net/pub/freshrpms/pub/dag/redhat/el4/en/i386/RPMS.dag/shc-3.8.6-1.el4.rf.i386.rpm<br/><br/><strong>加密Shell</strong> <br/>[code]&#91;root@GameDB shc&#93;# cat rsync.sh<br/>#!/bin/bash<br/>rsync -avz --delete 192.168.1.10::data /data/<br/>&#91;root@GameDB shc&#93;# shc -rvf rsync.sh <br/>shc shll=bash<br/>shc &#91;-i&#93;=-c<br/>shc &#91;-x&#93;=exec &#039;%s&#039; &quot;$@&quot;<br/>shc &#91;-l&#93;=<br/>shc opts=<br/>shc: cc&<br/>............<br/><br/>Tags - <a href="http://selboo.com.cn/tags/shell/" rel="tag">shell</a>
]]>
</description>
</item><item>
<link>http://selboo.com.cn/post/814/</link>
<title><![CDATA[rpm 包制作 bind包]]></title> 
<author>selboo &lt;root@selboo.com.cn&gt;</author>
<category><![CDATA[Linux]]></category>
<pubDate>Wed, 01 Sep 2010 00:58:00 +0000</pubDate> 
<guid>http://selboo.com.cn/post/814/</guid> 
<description>
<![CDATA[ 
	<br/>制作简单的rpm包<br/><br/>由于要装多台bind做DNS使用，一台一台编译很是麻烦，所以想到用源码包编写spec　来生成rpm包<br/>环境：centos 5.4<br/><br/>操作如下： 准备工作<br/><br/>1.下载 bind9.6.2<br/><br/>2.cp bind9.6.2.tar.gz /usr/src/redhat//usr/src/redhat/SOURCES<br/>编写spec<br/> 1.进入/usr/src/redhat/SPECS目录<br/> 2.编写bind.spec <br/>Summary:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The Name Server Of DNS<br/>Name:&nbsp;&nbsp; bind<br/>Version:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;9.6.2<br/>Release:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs<br/>............<br/><br/>Tags - <a href="http://selboo.com.cn/tags/rpm/" rel="tag">rpm</a>
]]>
</description>
</item><item>
<link>http://selboo.com.cn/post/810/</link>
<title><![CDATA[Apache并发连接数和带宽控制 ]]></title> 
<author>selboo &lt;root@selboo.com.cn&gt;</author>
<category><![CDATA[Linux]]></category>
<pubDate>Sun, 29 Aug 2010 03:23:39 +0000</pubDate> 
<guid>http://selboo.com.cn/post/810/</guid> 
<description>
<![CDATA[ 
	<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Linux+Apache的稳定性、安全性和性能以及低廉的价格正在赢得越来越多的市场份额，使用Linux+Apache作网站服务器的朋友也越来越多，而Apache作为一种http服务，相比FTP总是不容易控制，特别是当网站以http方式提供软件/音乐下载时，若是每个用户都开启多个线程并没有带宽的限制，将很快达到http的最大连接数或者造成网络壅塞，使得网站的许多正常服务都无法运行。不过，Apache的使用者们早已开发出了mod_limitipconn和mod_bandwidth两个模块，来控制http的并发连接数和用户所能够使用的带宽，下面将以RedHat Linux 7.3+Apache 1.3.7来说明它们的使用方法。 <br/><br/><strong>一、使用mod_limitipconn限制Apache的并发连接数</strong><br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mod_limitipconn可以控制每个IP地址同时连接服务器某一个目录的并发连接数<br/>............<br/><br/>Tags - <a href="http://selboo.com.cn/tags/apache/" rel="tag">apache</a> , <a href="http://selboo.com.cn/tags/%25E5%25B9%25B6%25E5%258F%2591/" rel="tag">并发</a> , <a href="http://selboo.com.cn/tags/%25E5%25B8%25A6%25E5%25AE%25BD/" rel="tag">带宽</a>
]]>
</description>
</item><item>
<link>http://selboo.com.cn/post/807/</link>
<title><![CDATA[Linux 重启不清除 /tmp 下文件]]></title> 
<author>selboo &lt;root@selboo.com.cn&gt;</author>
<category><![CDATA[Linux]]></category>
<pubDate>Tue, 24 Aug 2010 16:32:36 +0000</pubDate> 
<guid>http://selboo.com.cn/post/807/</guid> 
<description>
<![CDATA[ 
	<br/><br/><strong>Debian / Ubuntu Linux&nbsp;&nbsp;重启不清除 /tmp 下文件 的设置</strong><br/><br/><div class="code">vi /etc/default/rcS<br/>TMPTIME=0 修改成 TMPTIME=-1</div><br/><br/><strong>RHEL / CentOS / Fedora / Redhat Linux 开重启不清除 /tmp 下文件 的设置</strong><br/><br/><div class="code">cp /etc/cron.daily/tmpwatch /etc/cron.daily/tmpwatch.bak<br/>vi /etc/cron.daily/tmpwatch</div><br/><br/><br/><br/>Tags - <a href="http://selboo.com.cn/tags/linux/" rel="tag">linux</a> , <a href="http://selboo.com.cn/tags/tmp/" rel="tag">tmp</a>
]]>
</description>
</item><item>
<link>http://selboo.com.cn/post/806/</link>
<title><![CDATA[用 iptables 屏蔽来自某个国家的 IP]]></title> 
<author>selboo &lt;root@selboo.com.cn&gt;</author>
<category><![CDATA[Linux]]></category>
<pubDate>Mon, 23 Aug 2010 01:40:39 +0000</pubDate> 
<guid>http://selboo.com.cn/post/806/</guid> 
<description>
<![CDATA[ 
	首先去 http://www.ipdeny.com/ipblocks/ 下载对应的国家IP地址端<br/><br/>写个脚本循环导入即可。<br/><br/>[code]#!/bin/bash<br/># Block traffic from a specific country<br/># written by vpsee.com<br/><br/>COUNTRY = &quot;cn&quot;<br/>IPTABLES = /sbin/iptables<br/>EGREP = /bin/egrep<br/><br/>if &#91; &quot;$(id -u)&quot; != &quot;0&quot; &#93;; then<br/>&nbsp;&nbsp; echo &quot;you must be root&quot; 1&gt;&amp;2<br/>&nbsp;&nbsp; exit 1<br/>fi<br/><br/>resetrules() &#123;<br/>$IPTABLES -F<br/>$IPTABLES -t nat -F<br/>$IPTABLES -t m<br/>............<br/><br/>Tags - <a href="http://selboo.com.cn/tags/linux/" rel="tag">linux</a> , <a href="http://selboo.com.cn/tags/iptables/" rel="tag">iptables</a>
]]>
</description>
</item><item>
<link>http://selboo.com.cn/post/805/</link>
<title><![CDATA[在linux下用strace命令来追踪程序或进程的执行过程]]></title> 
<author>selboo &lt;root@selboo.com.cn&gt;</author>
<category><![CDATA[Linux]]></category>
<pubDate>Mon, 23 Aug 2010 01:33:06 +0000</pubDate> 
<guid>http://selboo.com.cn/post/805/</guid> 
<description>
<![CDATA[ 
	在linux下有一个strace命令，可以用来追踪程序或进程的执行过程，从中查找和追踪程序的bug,及运行中的瓶颈等。<br/><br/>命令用法，主要有两种方式：<br/><br/>1. strace&nbsp;&nbsp;程序<br/><br/>strace会运行这个程序，并追踪。<br/><br/>2. strace -p pid<br/><br/>这是追踪一个已经运行的程序。<br/><br/>另外还有一些参数也很有用，如-c可以生成一个统计结果，-o file可以把追踪信息输出到一个文件内。<br/><br/>一个例子：<br/>[code]<br/>&#91;root@74-82-173-217 wordpress&#93;# strace -p 9811<br/>Process 9811 attached - interrupt to quit<br/>rt_sigsuspend(&#91;&#93; &lt;unfinished ...&gt;<br/>Process 9811 detached<br/>&#91;root@74-82-173-217 wordpress<br/>............<br/><br/>Tags - <a href="http://selboo.com.cn/tags/linux/" rel="tag">linux</a> , <a href="http://selboo.com.cn/tags/linux%25E5%2591%25BD%25E4%25BB%25A4/" rel="tag">linux命令</a>
]]>
</description>
</item><item>
<link>http://selboo.com.cn/post/804/</link>
<title><![CDATA[Nginx的WordPress配置]]></title> 
<author>selboo &lt;root@selboo.com.cn&gt;</author>
<category><![CDATA[Linux]]></category>
<pubDate>Mon, 23 Aug 2010 01:25:52 +0000</pubDate> 
<guid>http://selboo.com.cn/post/804/</guid> 
<description>
<![CDATA[ 
	WordPress是一个非常流行的Blog系统，它可以利用Apache的mod_rewrite来实现URL的静态化。安装好的WordPress在配置了持久链接之后，会在网站的根目录下（如果可写）生成一个.htaccess文件，这个文件可以指示Apache如何进行URL重写（如果服务器配置为允许使用htaccess的指令的话），它的内容如下：<br/><br/><div class="code"># BEGIN WordPress<br/>&lt;IfModule mod_rewrite.c&gt;<br/>RewriteEngine On<br/>RewriteBase /<br/>RewriteCond %&#123;REQUEST_FILENAME&#125; !-f<br/>RewriteCond %&#123;REQUEST_FILENAME&#125; !-d<br/>RewriteRule . /index.php &#91;L&#93;<br/>&lt;/IfModule&gt;<br/># END WordPress</div><br/>这个文件的意思就是，如果当请求的文件不存在，那么把请求内部重定向到/index.php。Wor<br/>............<br/><br/>Tags - <a href="http://selboo.com.cn/tags/nginx/" rel="tag">nginx</a> , <a href="http://selboo.com.cn/tags/wordpress/" rel="tag">wordpress</a>
]]>
</description>
</item><item>
<link>http://selboo.com.cn/post/803/</link>
<title><![CDATA[linux dd 测试硬盘的读写性能]]></title> 
<author>selboo &lt;root@selboo.com.cn&gt;</author>
<category><![CDATA[Linux]]></category>
<pubDate>Tue, 17 Aug 2010 09:58:50 +0000</pubDate> 
<guid>http://selboo.com.cn/post/803/</guid> 
<description>
<![CDATA[ 
	注:dd只能提供一个大概的测试结果，而且是连续IO 而不是随机IO <br/>1. 首先用自带的dd命令先测一下, 块大小为8k <br/><br/>dd只能提供一个大概的测试结果，而且是连续IO 而不是随机IO <br/><br/>读测试 <br/># time dd if=/dev/sda2 of=/dev/null bs=8k count=8388608 <br/>8388608+0 records in <br/>8388608+0 records out <br/>68719476736 bytes (69 GB) copied, 516.547 seconds, 133 MB/s <br/>real&nbsp;&nbsp;&nbsp;&nbsp;8m36.926s <br/>user&nbsp;&nbsp;&nbsp;&nbsp;0m0.117s <br/>sys&nbsp;&nbsp;&nbsp;&nbsp; 0m55.216s <br/>#因为/dev/sda2是一个物理分区，对它的读取会产生IO，/dev/null是伪设备，相当于黑洞，of到该设备不会产生IO，所以，<br/>............<br/><br/>Tags - <a href="http://selboo.com.cn/tags/dd/" rel="tag">dd</a> , <a href="http://selboo.com.cn/tags/%25E6%2580%25A7%25E8%2583%25BD/" rel="tag">性能</a> , <a href="http://selboo.com.cn/tags/%25E6%25B5%258B%25E8%25AF%2595/" rel="tag">测试</a>
]]>
</description>
</item><item>
<link>http://selboo.com.cn/post/796/</link>
<title><![CDATA[Linux下关于热插拔硬盘的指令]]></title> 
<author>selboo &lt;root@selboo.com.cn&gt;</author>
<category><![CDATA[Linux]]></category>
<pubDate>Fri, 13 Aug 2010 05:52:52 +0000</pubDate> 
<guid>http://selboo.com.cn/post/796/</guid> 
<description>
<![CDATA[ 
	有时我们需要为在线系统添加热插拔的SCSI硬盘，此时我们不能停机，可以以下指令将新的硬盘加入系统中<br/><br/># echo "scsi add-single-device 0 0 1 0" > /proc/scsi/scsi&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// 添加硬盘<br/># echo "scsi remove-single-device 0 0 1 0" > /proc/scsi/scsi&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// 删除硬盘<br/><br/>对于指令中的四个数字分别表示scsi号、Channel号、Id号和LUN号<br/>我们可以通过下述指令查看系统内SCSI硬盘的这些信息<br/><br/># more /proc/scsi/scsi<br/>Attach<br/>............<br/><br/>Tags - <a href="http://selboo.com.cn/tags/linux/" rel="tag">linux</a> , <a href="http://selboo.com.cn/tags/%25E7%25A1%25AC%25E7%259B%2598/" rel="tag">硬盘</a> , <a href="http://selboo.com.cn/tags/scsi/" rel="tag">scsi</a>
]]>
</description>
</item><item>
<link>http://selboo.com.cn/post/790/</link>
<title><![CDATA[Apache配置文件http.conf中文版]]></title> 
<author>selboo &lt;root@selboo.com.cn&gt;</author>
<category><![CDATA[Linux]]></category>
<pubDate>Wed, 04 Aug 2010 12:31:58 +0000</pubDate> 
<guid>http://selboo.com.cn/post/790/</guid> 
<description>
<![CDATA[ 
	### 此份配置同时适用于Windows(开发环境)和Linux(产品环境)，依靠MPM的不同进行区分<br/><br/>##########################################################################################<br/>#### 第一部分 全局配置 [这些指令的作用域含有"server config"但不含"virtual host"] #####<br/>##########################################################################################<br/><br/>#####################################################################<br/>##### MPM 指令(所有MPM指令都仅能用于全局配置) #####<br/><br/>##### prefork 与 mpm_winnt 的公共指令<br/><br/>#内核转储目录(L<br/>............<br/><br/>Tags - <a href="http://selboo.com.cn/tags/apache/" rel="tag">apache</a> , <a href="http://selboo.com.cn/tags/httpd.conf/" rel="tag">httpd.conf</a>
]]>
</description>
</item><item>
<link>http://selboo.com.cn/post/786/</link>
<title><![CDATA[iptables 端口转发]]></title> 
<author>selboo &lt;root@selboo.com.cn&gt;</author>
<category><![CDATA[Linux]]></category>
<pubDate>Mon, 02 Aug 2010 11:07:54 +0000</pubDate> 
<guid>http://selboo.com.cn/post/786/</guid> 
<description>
<![CDATA[ 
	*nat<br/>:OUTPUT ACCEPT [0:0]<br/>:POSTROUTING ACCEPT [0:0]<br/>:PREROUTING ACCEPT [0:0]<br/>-A POSTROUTING -o eth0 -j SNAT --to-source 172.20.3.114<br/><br/>-A PREROUTING -d 192.168.6.114 -p tcp -m tcp --dport 3725 -j DNAT --to-destination 210.51.173.102:1521<br/>访问192.168.6.114：3725的访问&nbsp;&nbsp;他的目的地址都修改成210.51.173.102:1521<br/>-A POSTROUTING -d 210.51.173.102 -p tcp -m tcp --dport 1521 -j SNAT --to-source 192.168.6.114<br/>所有目的地址是210.51.173.102：1521&nbsp;&nbsp;他的源地址都修改成192.168.6.114<br/><br<br/>............<br/><br/>Tags - <a href="http://selboo.com.cn/tags/iptables/" rel="tag">iptables</a> , <a href="http://selboo.com.cn/tags/%25E7%25AB%25AF%25E5%258F%25A3/" rel="tag">端口</a>
]]>
</description>
</item><item>
<link>http://selboo.com.cn/post/778/</link>
<title><![CDATA[linux 修改网络参数并立即生效]]></title> 
<author>selboo &lt;root@selboo.com.cn&gt;</author>
<category><![CDATA[Linux]]></category>
<pubDate>Fri, 23 Jul 2010 03:35:16 +0000</pubDate> 
<guid>http://selboo.com.cn/post/778/</guid> 
<description>
<![CDATA[ 
	<strong>一、修改ip地址</strong><br/><br/>即时生效:<br/># ifconfig eth0 192.168.0.20 netmask 255.255.255.0<br/><br/>启动生效:<br/># vi /etc/sysconfig/network-scripts/ifcfg-eth0<br/><br/><strong>二、修改网关地址</strong><br/><br/>即时生效:<br/># route add default gw 192.168.0.254<br/><br/>启动生效:<br/># /etc/sysconfig/network-scripts/ifcfg-eth0<br/><br/><strong>三、修改dns</strong><br/><br/>修改/etc/resolv.conf<br/>修改后可即时生效，启动同样有效<br/><br/><strong>四、修改主机名</strong><br/><br/>即时生效:<br/># hostname fc2<br/><br/>启动生效:<br/># vi /etc/sysconfig/network<br/><br/>Tags - <a href="http://selboo.com.cn/tags/linux/" rel="tag">linux</a> , <a href="http://selboo.com.cn/tags/%25E7%25BD%2591%25E5%258D%25A1/" rel="tag">网卡</a>
]]>
</description>
</item><item>
<link>http://selboo.com.cn/post/774/</link>
<title><![CDATA[FTP出现500 OOPS: cannot change directory]]></title> 
<author>selboo &lt;root@selboo.com.cn&gt;</author>
<category><![CDATA[Linux]]></category>
<pubDate>Fri, 23 Jul 2010 02:57:04 +0000</pubDate> 
<guid>http://selboo.com.cn/post/774/</guid> 
<description>
<![CDATA[ 
	cannot change directory:/home/***<br/><br/>ftp服务器连接失败,错误提示:<br/><br/>500 OOPS: cannot change directory:/home/*******<br/><br/>500 OOPS: child died<br/><br/>解决方法:<br/><br/>在终端输入命令：<br/><br/>setsebool ftpd_disable_trans 1<br/><br/>service vsftpd restart<br/><br/>就ＯＫ了！<br/><br/>在安装完vsftp服务后登陆时可能遇到cannot change directory后面是登陆者的目录的错误。这是因为SE设置的关闭了ftp的原因。 使用命令 getsebool ftpd_disable_trans 可以查看当前的状态如果不是on 那么是输入命令 setsebool ftpd_disable_trans 1 当然也可以加入-P参数 以便不需要每次开机都输入这个命令 setsebool -P ftpd_disable_trans<br/>............<br/><br/>Tags - <a href="http://selboo.com.cn/tags/ftp/" rel="tag">ftp</a> , <a href="http://selboo.com.cn/tags/%25E9%2594%2599%25E8%25AF%25AF/" rel="tag">错误</a>
]]>
</description>
</item><item>
<link>http://selboo.com.cn/post/771/</link>
<title><![CDATA[在64位的 Linux 上只安装64位的软件包]]></title> 
<author>selboo &lt;root@selboo.com.cn&gt;</author>
<category><![CDATA[Linux]]></category>
<pubDate>Sat, 10 Jul 2010 16:45:51 +0000</pubDate> 
<guid>http://selboo.com.cn/post/771/</guid> 
<description>
<![CDATA[ 
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;在 64位版本的 Linux 上使用 yum 安装软件包的时候如果不小心的话会同时安装 i386 和 x86_64 版本的软件，如下面安装的 httpd-devel 就有 i386 和 x86_64 两个版本：<br/><br/>[code]# yum install httpd-devel<br/>...<br/>Dependencies Resolved<br/><br/>================================================================================<br/> Package&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Arch&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Version&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&<br/>............<br/><br/>Tags - <a href="http://selboo.com.cn/tags/linux/" rel="tag">linux</a> , <a href="http://selboo.com.cn/tags/yum/" rel="tag">yum</a>
]]>
</description>
</item><item>
<link>http://selboo.com.cn/post/770/</link>
<title><![CDATA[需要同时设置 noatime 和 nodiratime 吗？]]></title> 
<author>selboo &lt;root@selboo.com.cn&gt;</author>
<category><![CDATA[Linux]]></category>
<pubDate>Sat, 10 Jul 2010 16:24:30 +0000</pubDate> 
<guid>http://selboo.com.cn/post/770/</guid> 
<description>
<![CDATA[ 
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;相信对性能、优化这些关键字有兴趣的朋友都知道在 Linux 下面挂载文件系统的时候设置 noatime 可以显著提高文件系统的性能。默认情况下，Linux ext2/ext3 文件系统在文件被访问、创建、修改等的时候记录下了文件的一些时间戳，比如：文件创建时间、最近一次修改时间和最近一次访问时间。因为系统运行的时候要访问大量文件，如果能减少一些动作（比如减少时间戳的记录次数等）将会显著提高磁盘 IO 的效率、提升文件系统的性能。Linux 提供了 noatime 这个参数来禁止记录最近一次访问时间戳。<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;给文件系统挂载的时候加上 noatime 参数能大幅提高文件系统性能：<br/><br/>[code]# vi /etc/fstab<br/>/dev/sda1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br/>............<br/><br/>Tags - <a href="http://selboo.com.cn/tags/linux/" rel="tag">linux</a> , <a href="http://selboo.com.cn/tags/%25E4%25BC%2598%25E5%258C%2596/" rel="tag">优化</a>
]]>
</description>
</item><item>
<link>http://selboo.com.cn/post/768/</link>
<title><![CDATA[Linux 绑定制定硬件中断到不同 CPU]]></title> 
<author>selboo &lt;root@selboo.com.cn&gt;</author>
<category><![CDATA[Linux]]></category>
<pubDate>Fri, 09 Jul 2010 02:27:35 +0000</pubDate> 
<guid>http://selboo.com.cn/post/768/</guid> 
<description>
<![CDATA[ 
	From：http://www.vpsee.com/2010/07/load-balancing-with-irq-smp-affinity/<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;硬件中断发生频繁，是件很消耗 CPU 资源的事情，在多核 CPU 条件下如果有办法把大量硬件中断分配给不同的 CPU (core) 处理显然能很好的平衡性能。现在的服务器上动不动就是多 CPU 多核、多网卡、多硬盘，如果能让网卡中断独占1个 CPU (core)、磁盘 IO 中断独占1个 CPU 的话将会大大减轻单一 CPU 的负担、提高整体处理效率。VPSee 前天收到一位网友的邮件提到了 SMP IRQ Affinity，引发了今天的话题：D，以下操作在 SUN FIre X2100 M2 服务器＋ 64位版本 CentOS 5.5 + Linux 2.6.18-194.3.1.el5 上执行。<br/><br/><strong>什么是中断</strong><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;中文教材上对 “中断” 的定义太生<br/>............<br/><br/>Tags - <a href="http://selboo.com.cn/tags/linux/" rel="tag">linux</a> , <a href="http://selboo.com.cn/tags/%25E4%25B8%25AD%25E6%2596%25AD/" rel="tag">中断</a>
]]>
</description>
</item><item>
<link>http://selboo.com.cn/post/767/</link>
<title><![CDATA[计算 SMP IRQ Affinity]]></title> 
<author>selboo &lt;root@selboo.com.cn&gt;</author>
<category><![CDATA[Linux]]></category>
<pubDate>Fri, 09 Jul 2010 02:21:58 +0000</pubDate> 
<guid>http://selboo.com.cn/post/767/</guid> 
<description>
<![CDATA[ 
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;前天我们讨论了 如何绑定特定的硬件中断到特定的 CPU 上 ，分散和平衡各个中断到不同的 CPU 上以获取更大性能的处理能力。上篇限于篇幅的关系，没有来得及进一步说明 “echo 2 > /proc/irq/90/smp_affinity” 中的 ”2“ 是怎么来的，这其实是个二进制数字，代表 00000010，00000001 代表 CPU0 的话，00000010 就代表 CPU0， “echo 2 > /proc/irq/90/smp_affinity” 的意思就是说把 90 中断绑定到 00000010（CPU1）上。所以各个 CPU 用二进制和十六进制表示就是：<br/><br/>[code]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Binary&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Hex<br/>&nbsp;&nbsp; &#91;separ<br/>............<br/><br/>Tags - <a href="http://selboo.com.cn/tags/linux/" rel="tag">linux</a> , <a href="http://selboo.com.cn/tags/%25E4%25B8%25AD%25E6%2596%25AD/" rel="tag">中断</a>
]]>
</description>
</item><item>
<link>http://selboo.com.cn/post/766/</link>
<title><![CDATA[No module named rpm]]></title> 
<author>selboo &lt;root@selboo.com.cn&gt;</author>
<category><![CDATA[Linux]]></category>
<pubDate>Mon, 05 Jul 2010 09:52:37 +0000</pubDate> 
<guid>http://selboo.com.cn/post/766/</guid> 
<description>
<![CDATA[ 
	想用yum 安装一个包，发现yum不能使用如下。<br/><br/>[code]&#91;root@done1 yum&#93;# yum<br/>There was a problem import<br/>............<br/><br/>Tags - <a href="http://selboo.com.cn/tags/yum/" rel="tag">yum</a> , <a href="http://selboo.com.cn/tags/%25E9%2594%2599%25E8%25AF%25AF/" rel="tag">错误</a>
]]>
</description>
</item><item>
<link>http://selboo.com.cn/post/764/</link>
<title><![CDATA[linux开机启动流程(图)]]></title> 
<author>selboo &lt;root@selboo.com.cn&gt;</author>
<category><![CDATA[Linux]]></category>
<pubDate>Mon, 05 Jul 2010 02:42:45 +0000</pubDate> 
<guid>http://selboo.com.cn/post/764/</guid> 
<description>
<![CDATA[ 
	<a href="http://selboo.com.cn/attachment.php?fid=298" target="_blank"><img src="http://selboo.com.cn/attachment.php?fid=298" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/>Tags - <a href="http://selboo.com.cn/tags/linux%25E5%2590%25AF%25E5%258A%25A8/" rel="tag">linux启动</a>
]]>
</description>
</item><item>
<link>http://selboo.com.cn/post/761/</link>
<title><![CDATA[Linux 的处理器负载均值（翻译）]]></title> 
<author>selboo &lt;root@selboo.com.cn&gt;</author>
<category><![CDATA[Linux]]></category>
<pubDate>Mon, 05 Jul 2010 01:42:43 +0000</pubDate> 
<guid>http://selboo.com.cn/post/761/</guid> 
<description>
<![CDATA[ 
	原文链接： http://blog.scoutapp.com/articles/2009/07/31/understanding-load-averages<br/>&nbsp;&nbsp;<br/>............<br/><br/>Tags - <a href="http://selboo.com.cn/tags/%25E8%25B4%259F%25E8%25BD%25BD/" rel="tag">负载</a> , <a href="http://selboo.com.cn/tags/uptime/" rel="tag">uptime</a>
]]>
</description>
</item><item>
<link>http://selboo.com.cn/post/760/</link>
<title><![CDATA[Linux parted命令支持T级分区]]></title> 
<author>selboo &lt;root@selboo.com.cn&gt;</author>
<category><![CDATA[Linux]]></category>
<pubDate>Fri, 02 Jul 2010 12:22:17 +0000</pubDate> 
<guid>http://selboo.com.cn/post/760/</guid> 
<description>
<![CDATA[ 
	[root@abintel ~]# parted --help <br/>用法：parted [选项]... [设备 [命令 [参数]...]...] <br/>将带有“参数”的命令应用于“设备”。如<br/>............<br/><br/>Tags - <a href="http://selboo.com.cn/tags/linux/" rel="tag">linux</a> , <a href="http://selboo.com.cn/tags/linux%25E5%2591%25BD%25E4%25BB%25A4/" rel="tag">linux命令</a> , <a href="http://selboo.com.cn/tags/%25E5%2588%2586%25E5%258C%25BA/" rel="tag">分区</a> , <a href="http://selboo.com.cn/tags/parted/" rel="tag">parted</a>
]]>
</description>
</item><item>
<link>http://selboo.com.cn/post/759/</link>
<title><![CDATA[制作initrd.img文件 ]]></title> 
<author>selboo &lt;root@selboo.com.cn&gt;</author>
<category><![CDATA[Linux]]></category>
<pubDate>Fri, 02 Jul 2010 10:52:47 +0000</pubDate> 
<guid>http://selboo.com.cn/post/759/</guid> 
<description>
<![CDATA[ 
	initrd.img文件是redhat,mandrake等linux发布使用的内存镜像文件。<br/><br/>镜像中是一个微型系统。在安装系统时，将initrd.img展开到内存中。并运行rc安装脚<br/>............<br/><br/>Tags - <a href="http://selboo.com.cn/tags/linux/" rel="tag">linux</a> , <a href="http://selboo.com.cn/tags/initrd.img/" rel="tag">initrd.img</a>
]]>
</description>
</item><item>
<link>http://selboo.com.cn/post/750/</link>
<title><![CDATA[PHP在APACHE下的几种工作方式]]></title> 
<author>selboo &lt;root@selboo.com.cn&gt;</author>
<category><![CDATA[Linux]]></category>
<pubDate>Sun, 20 Jun 2010 03:05:05 +0000</pubDate> 
<guid>http://selboo.com.cn/post/750/</guid> 
<description>
<![CDATA[ 
	php在apache中一共有三种工作方式：CGI模式、FastCGI模式、Apache 模块DLL)<br/>以下分别比较：<br/><br/>一、CGI模式与模块模式比较：<br/>php在apac<br/>............<br/><br/>Tags - <a href="http://selboo.com.cn/tags/php/" rel="tag">php</a> , <a href="http://selboo.com.cn/tags/apache/" rel="tag">apache</a>
]]>
</description>
</item><item>
<link>http://selboo.com.cn/post/746/</link>
<title><![CDATA[安装linux后的内核调优]]></title> 
<author>selboo &lt;root@selboo.com.cn&gt;</author>
<category><![CDATA[Linux]]></category>
<pubDate>Tue, 15 Jun 2010 03:31:14 +0000</pubDate> 
<guid>http://selboo.com.cn/post/746/</guid> 
<description>
<![CDATA[ 
	vm.swappiness = 10<br/>net.ipv4.tcp_syncookies = 1<br/>net.ipv4.tcp_tw_reuse = 1<br/>net.ipv4.tcp_tw<br/>............<br/><br/>Tags - <a href="http://selboo.com.cn/tags/linux/" rel="tag">linux</a> , <a href="http://selboo.com.cn/tags/%25E4%25BC%2598%25E5%258C%2596/" rel="tag">优化</a>
]]>
</description>
</item><item>
<link>http://selboo.com.cn/post/744/</link>
<title><![CDATA[linux dd 硬盘对拷]]></title> 
<author>selboo &lt;root@selboo.com.cn&gt;</author>
<category><![CDATA[Linux]]></category>
<pubDate>Tue, 15 Jun 2010 02:32:41 +0000</pubDate> 
<guid>http://selboo.com.cn/post/744/</guid> 
<description>
<![CDATA[ 
	硬盘不够用了，里面在大量的小文件，cp或rsync都非常慢。<br/><br/>开始又没有做LVM,现在要拿两个大硬盘做LVM，去换这个硬盘。<br/><br/>怎么COPY数据是最快的？<br/><<br/>............<br/><br/>Tags - <a href="http://selboo.com.cn/tags/linux/" rel="tag">linux</a> , <a href="http://selboo.com.cn/tags/linux%25E5%2591%25BD%25E4%25BB%25A4/" rel="tag">linux命令</a> , <a href="http://selboo.com.cn/tags/dd/" rel="tag">dd</a>
]]>
</description>
</item><item>
<link>http://selboo.com.cn/post/743/</link>
<title><![CDATA[压力测试 ab,Siege,http_load,webbench]]></title> 
<author>selboo &lt;root@selboo.com.cn&gt;</author>
<category><![CDATA[Linux]]></category>
<pubDate>Thu, 10 Jun 2010 08:24:56 +0000</pubDate> 
<guid>http://selboo.com.cn/post/743/</guid> 
<description>
<![CDATA[ 
	一、http_load<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp; http_load以并行复用的方式运行，用以测试web服务器的吞吐量与负载。但是它不同于大多数压力测试工具，<br/>............<br/><br/>Tags - <a href="http://selboo.com.cn/tags/%25E5%258E%258B%25E5%258A%259B%25E6%25B5%258B%25E8%25AF%2595/" rel="tag">压力测试</a>
]]>
</description>
</item><item>
<link>http://selboo.com.cn/post/738/</link>
<title><![CDATA[Linux 图片转换命令 convert]]></title> 
<author>selboo &lt;root@selboo.com.cn&gt;</author>
<category><![CDATA[Linux]]></category>
<pubDate>Fri, 04 Jun 2010 04:08:12 +0000</pubDate> 
<guid>http://selboo.com.cn/post/738/</guid> 
<description>
<![CDATA[ 
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Image MagicK 是一个强大的图象处理工具包。它提供了几个非常方便的命令行命令: display, animate,import, montage,<br/>............<br/><br/>Tags - <a href="http://selboo.com.cn/tags/linux/" rel="tag">linux</a> , <a href="http://selboo.com.cn/tags/linux%25E5%2591%25BD%25E4%25BB%25A4/" rel="tag">linux命令</a> , <a href="http://selboo.com.cn/tags/convert/" rel="tag">convert</a>
]]>
</description>
</item><item>
<link>http://selboo.com.cn/post/737/</link>
<title><![CDATA[使用root执行php-fpm]]></title> 
<author>selboo &lt;root@selboo.com.cn&gt;</author>
<category><![CDATA[Linux]]></category>
<pubDate>Thu, 03 Jun 2010 07:17:32 +0000</pubDate> 
<guid>http://selboo.com.cn/post/737/</guid> 
<description>
<![CDATA[ 
	找到文件 $src_path/sapi/cgi/fpm/fpm_unix.c里边有段代码<br/>增加红色字段<br/><br/>==========================================<br/>[color=#FF0000]#defin<br/>............<br/><br/>Tags - <a href="http://selboo.com.cn/tags/php/" rel="tag">php</a> , <a href="http://selboo.com.cn/tags/php-fpm/" rel="tag">php-fpm</a>
]]>
</description>
</item>
</channel>
</rss>