<?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://www.yaoyingying.com/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.yaoyingying.com</link>
	<description>Wordpress, Drupal 二次开发~</description>
	<lastBuildDate>Wed, 08 Feb 2012 12:54:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Apache 通过 .htaccess 对目录加密</title>
		<link>http://www.yaoyingying.com/2009/06/01/apache-%e9%80%9a%e8%bf%87-htaccess-%e5%af%b9%e7%9b%ae%e5%bd%95%e5%8a%a0%e5%af%86/</link>
		<comments>http://www.yaoyingying.com/2009/06/01/apache-%e9%80%9a%e8%bf%87-htaccess-%e5%af%b9%e7%9b%ae%e5%bd%95%e5%8a%a0%e5%af%86/#comments</comments>
		<pubDate>Mon, 01 Jun 2009 12:49:02 +0000</pubDate>
		<dc:creator>姚 迎迎</dc:creator>
				<category><![CDATA[Linux-Server]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[lamp]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[目录加密]]></category>

		<guid isPermaLink="false">http://www.yaoyingying.com/?p=346</guid>
		<description><![CDATA[例如有/home/www/website/dir1 目录，需要对/dir1/加密访问，必须输入口令密码才能访问。 在这种情况下，要是/dir1/加密可以通过 .htaccess 和 .htpasswd 的设置来实现 在/home/www/website/dir1下建立.htaccess文件 vi /home/test1/a/.htaccess 文件内容如下 AuthName “===LOGIN===”   #随便填写 AuthType Basic AuthUserFile /home/www/website/dir1/.htpasswd Require valid-user username 保存退出 账号生成口令 htpasswd -c /home/test1/a/.htpasswd username 系统会要求输入两遍该用户的密码。 修改密码也是同样 htpasswd -c /home/test1/a/.htpasswd username]]></description>
		<wfw:commentRss>http://www.yaoyingying.com/2009/06/01/apache-%e9%80%9a%e8%bf%87-htaccess-%e5%af%b9%e7%9b%ae%e5%bd%95%e5%8a%a0%e5%af%86/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ifconfig 命令详解（转载）</title>
		<link>http://www.yaoyingying.com/2009/05/02/ifconfig-%e5%91%bd%e4%bb%a4%e8%af%a6%e8%a7%a3/</link>
		<comments>http://www.yaoyingying.com/2009/05/02/ifconfig-%e5%91%bd%e4%bb%a4%e8%af%a6%e8%a7%a3/#comments</comments>
		<pubDate>Sat, 02 May 2009 14:52:59 +0000</pubDate>
		<dc:creator>姚 迎迎</dc:creator>
				<category><![CDATA[Featured Stories]]></category>
		<category><![CDATA[Linux-Server]]></category>
		<category><![CDATA[ifconfig]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.yaoyingying.com/?p=256</guid>
		<description><![CDATA[无论是Linux 自动安装还是我们手工安装，Linux 都会向你询问有关网络的问题并配置相关的软件。这个用于配置网卡的基本命令就是ifconfig。 在执行ifconfig 命令后，系统将在内核表中设置必要的参数，这样Linux 就知道如何与网络上的网卡通 信。ifconfig 命令有以下两种格式： ※ifconfig &#91;interface&#93; ※ifconfig interface &#91;aftype&#93; option &#124; address … ifconfig 的第一种格式（或使用不带任何参数的ifconfig 命令）可以用来查看当前系统的网络配置情况。 在刚刚安装完系统之后，实际上是在没有网卡或者网络连接的情况下使用Linux，但通过ifconfig 可以使用回绕方式工作，使计算机认为自己工作在网络上。 现在我们运行一下ifconfig 命令，不带参数的ifconfig 命令可以显示当前启动的网络接口，其输出结果 为： &#91;root@machine1 /sbin&#93;#ifconfig eth0 Link encap:Ethernet Hwaddr 52:54:AB:DD:6F:61 inet addr:210.34.6.89 Bcast:210.34.6.127 Mask:255.255.255.128 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:46299 errors:0 dropped:0 overruns:0 frame:189 TX packets:3057 errors:0 dropped:0 overruns:0 carrier:0 [...]]]></description>
		<wfw:commentRss>http://www.yaoyingying.com/2009/05/02/ifconfig-%e5%91%bd%e4%bb%a4%e8%af%a6%e8%a7%a3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>cannot restore segment prot after reloc: Permission denied</title>
		<link>http://www.yaoyingying.com/2009/05/02/cannot-restore-segment-prot-after-reloc-permission-denied/</link>
		<comments>http://www.yaoyingying.com/2009/05/02/cannot-restore-segment-prot-after-reloc-permission-denied/#comments</comments>
		<pubDate>Sat, 02 May 2009 14:29:12 +0000</pubDate>
		<dc:creator>姚 迎迎</dc:creator>
				<category><![CDATA[Linux-Server]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[linux error]]></category>
		<category><![CDATA[Permission denied]]></category>

		<guid isPermaLink="false">http://www.yaoyingying.com/?p=252</guid>
		<description><![CDATA[在linux上安装有些东西时会出现 Permission denied 的情况：以下就是解决它的办法之一 编辑/etc/selinux/config，找到这段： # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - SELinux is fully disabled. SELINUX=enforcing 把 SELINUX=enforcing 注释掉：#SELINUX=enforcing ，然后新加一行为： SELINUX=disabled [...]]]></description>
		<wfw:commentRss>http://www.yaoyingying.com/2009/05/02/cannot-restore-segment-prot-after-reloc-permission-denied/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache日志分析</title>
		<link>http://www.yaoyingying.com/2009/05/02/apache%e6%97%a5%e5%bf%97%e5%88%86%e6%9e%90/</link>
		<comments>http://www.yaoyingying.com/2009/05/02/apache%e6%97%a5%e5%bf%97%e5%88%86%e6%9e%90/#comments</comments>
		<pubDate>Sat, 02 May 2009 14:15:45 +0000</pubDate>
		<dc:creator>姚 迎迎</dc:creator>
				<category><![CDATA[Linux-Server]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[lamp]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[日志分析]]></category>

		<guid isPermaLink="false">http://www.yaoyingying.com/?p=248</guid>
		<description><![CDATA[1,查看apache进程: ps aux &#124; grep httpd &#124; grep -v grep &#124; wc -l 2,查看80端口的tcp连接: netstat -tan &#124; grep &#34;ESTABLISHED&#34; &#124; grep &#34;:80&#34; &#124; wc -l 3,通过日志查看当天ip连接数，过滤重复: cat access_log &#124; grep &#34;20/Oct/2008&#34; &#124; awk '{print $2}' &#124; sort &#124; uniq -c &#124; sort -nr 4,当天ip连接数最高的ip都在干些什么(原来是蜘蛛): cat access_log &#124; grep &#34;20/Oct/2008:00&#34; &#124; grep &#34;122.102.7.212&#34; &#124; awk '{print [...]]]></description>
		<wfw:commentRss>http://www.yaoyingying.com/2009/05/02/apache%e6%97%a5%e5%bf%97%e5%88%86%e6%9e%90/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Apache的rewrite的设置参数</title>
		<link>http://www.yaoyingying.com/2009/05/02/apache%e7%9a%84rewrite%e7%9a%84%e8%ae%be%e7%bd%ae%e5%8f%82%e6%95%b0/</link>
		<comments>http://www.yaoyingying.com/2009/05/02/apache%e7%9a%84rewrite%e7%9a%84%e8%ae%be%e7%bd%ae%e5%8f%82%e6%95%b0/#comments</comments>
		<pubDate>Sat, 02 May 2009 14:04:32 +0000</pubDate>
		<dc:creator>姚 迎迎</dc:creator>
				<category><![CDATA[Linux-Server]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[lamp]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[rewrite]]></category>

		<guid isPermaLink="false">http://www.yaoyingying.com/?p=243</guid>
		<description><![CDATA[Apache的rewrite的重写非常常用,现总结了一下. Apache mod_rewrite规则重写的标志一览 R[=code](force redirect) 强制外部重定向 强制在替代字符串加上http://thishost[:thisport]/前缀重定向到外部的URL.如果code不指定，将用缺省的302 HTTP状态码。 F(force URL to be forbidden)禁用URL,返回403HTTP状态码。 G(force URL to be gone) 强制URL为GONE，返回410HTTP状态码。 P(force proxy) 强制使用代理转发。 L(last rule) 表明当前规则是最后一条规则，停止分析以后规则的重写。 N(next round) 重新从第一条规则开始运行重写过程。 C(chained with next rule) 与下一条规则关联 如果规则匹配则正常处理，该标志无效，如果不匹配，那么下面所有关联的规则都跳过。 T=MIME-type(force MIME type) 强制MIME类型 NS (used only if no internal sub-request) 只用于不是内部子请求 NC(no case) 不区分大小写 QSA(query string append) 追加请求字符串 NE(no URI [...]]]></description>
		<wfw:commentRss>http://www.yaoyingying.com/2009/05/02/apache%e7%9a%84rewrite%e7%9a%84%e8%ae%be%e7%bd%ae%e5%8f%82%e6%95%b0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>linux tar命令详解</title>
		<link>http://www.yaoyingying.com/2009/03/03/linux-tar%e5%91%bd%e4%bb%a4%e8%af%a6%e8%a7%a3/</link>
		<comments>http://www.yaoyingying.com/2009/03/03/linux-tar%e5%91%bd%e4%bb%a4%e8%af%a6%e8%a7%a3/#comments</comments>
		<pubDate>Tue, 03 Mar 2009 15:41:28 +0000</pubDate>
		<dc:creator>姚 迎迎</dc:creator>
				<category><![CDATA[Linux-Server]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[tar]]></category>

		<guid isPermaLink="false">http://www.yaoyingying.com/?p=18</guid>
		<description><![CDATA[tar命令 tar可以为文件和目录创建档案。利用tar，用户可以为某一特定文件创建档案（备份文件），也可以在档案中改变文件，或者向档案中加入新的文件。tar 最初被用来在磁带上创建档案，现在，用户可以在任何设备上创建档案，如软盘。利用tar命令，可以把一大堆的文件和目录全部打包成一个文件，这对于备份文 件或将几个文件组合成为一个文件以便于网络传输是非常有用的。Linux上的tar是GNU版本的。 语法：tar [主选项+辅选项] 文件或者目录 使用该命令时，主选项是必须要有的，它告诉tar要做什么事情，辅选项是辅助使用的，可以选用。 主选项： c 创建新的档案文件。如果用户想备份一个目录或是一些文件，就要选择这个选项。 r 把要存档的文件追加到档案文件的未尾。例如用户已经作好备份文件，又发现还有一个目录或是一些文件忘记备份了，这时可以使用该选项，将忘记的目录或文件追加到备份文件中。 t 列出档案文件的内容，查看已经备份了哪些文件。 u 更新文件。就是说，用新增的文件取代原备份文件，如果在备份文件中找不到要更新的文件，则把它追加到备份文件的最后。 x 从档案文件中释放文件。 辅助选项： b 该选项是为磁带机设定的。其后跟一数字，用来说明区块的大小，系统预设值为20（20*512 bytes）。 f 使用档案文件或设备，这个选项通常是必选的。 k 保存已经存在的文件。例如我们把某个文件还原，在还原的过程中，遇到相同的文件，不会进行覆盖。 m 在还原文件时，把所有文件的修改时间设定为现在。 M 创建多卷的档案文件，以便在几个磁盘中存放。 v 详细报告tar处理的文件信息。如无此选项，tar不报告文件信息。 w 每一步都要求确认。 z 用gzip来压缩/解压缩文件，加上该选项后可以将档案文件进行压缩，但还原时也一定要使用该选项进行解压缩。 Linux下的压缩文件剖析 对于刚刚接触Linux的人来说，一定会给Linux下一大堆各式各样的文件名给搞晕。别个不说，单单就压缩文件为例，我们知道在Windows下 最常见的压缩文件就只有两种，一是,zip，另一个是.rap。可是Linux就不同了，它有.gz、.tar.gz、tgz、bz2、.Z、.tar等 众多的压缩文件名，此外windows下的.zip和.rar也可以在Linux下使用，不过在Linux使用.zip和.rar的人就太少了。本文就来 对这些常见的压缩文件进行一番小结，希望你下次遇到这些文件时不至于被搞晕:) 在具体总结各类压缩文件之前呢，首先要弄清两个概念：打包和压缩。打包是指将一大堆文件或目录什么的变成一个总的文件，压缩则是将一个大的文件 通过一些压缩算法变成一个小文件。为什么要区分这两个概念呢？其实这源于Linux中的很多压缩程序只能针对一个文件进行压缩，这样当你想要压缩一大堆文 件时，你就得先借助另它的工具将这一大堆文件先打成一个包，然后再就原来的压缩程序进行压缩。 Linux下最常用的打包程序就是tar了，使用tar程序打出来的包我们常称为tar包，tar包文件的命令通常都是以.tar结尾的。生成tar包后，就可以用其它的程序来进行压缩了，所以首先就来讲讲tar命令的基本用法： tar命令的选项有很多(用man tar可以查看到)，但常用的就那么几个选项，下面来举例说明一下： # tar -cf all.tar *.jpg 这条命令是将所有.jpg的文件打成一个名为all.tar的包。-c是表示产生新的包，-f指定包的文件名。 # [...]]]></description>
		<wfw:commentRss>http://www.yaoyingying.com/2009/03/03/linux-tar%e5%91%bd%e4%bb%a4%e8%af%a6%e8%a7%a3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

