<?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>Azone&#039;s Blog &#187; Linux相关</title>
	<atom:link href="http://www.firestudio.cn/category/linux/feed" rel="self" type="application/rss+xml" />
	<link>http://www.firestudio.cn</link>
	<description>用到一点记录一点。</description>
	<lastBuildDate>Thu, 01 Dec 2011 03:20:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>一个网卡绑定多个IP地址</title>
		<link>http://www.firestudio.cn/2010/12/29/242.html</link>
		<comments>http://www.firestudio.cn/2010/12/29/242.html#comments</comments>
		<pubDate>Wed, 29 Dec 2010 02:49:41 +0000</pubDate>
		<dc:creator>Yozone Wong</dc:creator>
				<category><![CDATA[Linux相关]]></category>
		<category><![CDATA[应用技巧]]></category>

		<guid isPermaLink="false">http://www.firestudio.cn/?p=242</guid>
		<description><![CDATA[linux的网络设备配置文件存放在/etc/sysconfig/network-scripts里面， 对于 以太网的第一个网络设备，配置文件名一般为ifcfg-eth0。如果需要为第一个网络设 备多绑定一个IP地址，只需要在/etc/sysconfig/network-scripts目录里面创建一个 名为ifcfg-eth0:0的文件，内容样例为： 　　DEVICE=&#34;eth0:0&#34; &#160; 　　IPADDR=&#34;211.100.10.119&#34; &#160; 　　NETMASK=&#34;255.255.255.0&#34; &#160; 　　ONBOOT=&#34;yes&#34; 其中的DEVICE为设备的名称，IPADDR为此设备的IP地址，NETMASK为子网掩码，ONBOOT 表示在系统启动时自动启动。 如果需要再绑定多一个IP地址，只需要把文件名和文件内的DEVICE中的eth0:x加一即 可。LINUX最多可以支持255个IP别名。 本文来自：Linux宝库 &#8212; http://www.linuxpk.com/775.html]]></description>
		<wfw:commentRss>http://www.firestudio.cn/2010/12/29/242.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>「转」在nginx中开启PHP的404等error错误转向</title>
		<link>http://www.firestudio.cn/2010/12/21/237.html</link>
		<comments>http://www.firestudio.cn/2010/12/21/237.html#comments</comments>
		<pubDate>Tue, 21 Dec 2010 10:20:46 +0000</pubDate>
		<dc:creator>Yozone Wong</dc:creator>
				<category><![CDATA[Linux相关]]></category>
		<category><![CDATA[PHP编程]]></category>
		<category><![CDATA[应用技巧]]></category>

		<guid isPermaLink="false">http://www.firestudio.cn/?p=237</guid>
		<description><![CDATA[公司统一使用了404 50x等比较直观的页面，在使用的时候忽然发现使用fastcgi的php当访问一个不存在的.php页面，居然不生效,不会转向,当时查了很多资料没有找到相关说明，今天逛nignx wiki的时候忽然发现有个设置 location ~ ^.+\.php { include conf/fastcgi_params.conf; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /data/wwwroot/haha.91.com/webroot$fastcgi_script_name; fastcgi_intercept_errors on; } 即加入了这一行 fastcgi_intercept_errors on; 这样就能正常做error的错误转向了 紧接着问题又来了，怎么实现全局都实现这个功能呢,这样一个个的加可不是办法啊! 冥想中…… 原文：http://www.91linux.cn/?p=216]]></description>
		<wfw:commentRss>http://www.firestudio.cn/2010/12/21/237.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>网站更换Apache到Nginx</title>
		<link>http://www.firestudio.cn/2010/12/17/228.html</link>
		<comments>http://www.firestudio.cn/2010/12/17/228.html#comments</comments>
		<pubDate>Fri, 17 Dec 2010 08:34:47 +0000</pubDate>
		<dc:creator>Yozone Wong</dc:creator>
				<category><![CDATA[Linux相关]]></category>

		<guid isPermaLink="false">http://www.firestudio.cn/?p=228</guid>
		<description><![CDATA[最近很happy，因为注册了Amazon的免费VPS（免费一年），注册地址：http://aws.amazon.com/ec2/，这里是免费VPS的配置http://aws.amazon.com/free/。最近用了，性能非常不错，软件也非常新（有些人总是想第一时间用到最新的软件，比如说我:D），但是有一个问题，在监控宝上监控的时候内存用的很夸张，经常用到80～90%，你要知道我在服务器上就放一个站，而且流量很小。 我在想老是这样可不行啊。那时候就开始考虑换成nginx了，但是Amazon自己的Linux系统（Amazon Linux AMI）一直没这个spawn-fastcgi这个包，也想过编译，不过一直很懒～。今天登陆用yum search spawn-fcgi竟然搜到了，太高兴了，立刻装上！ sudo su yum install spawn-fcgi php-cgi nginx 注意：在这之前MySQL, PHP等已经装好了，非常简单，这里就不多说了。 然后编写php-fastcgi脚本： /usr/bin/php-fastcgi #!/bin/sh &#160; FASTCGI_USER=http &#160; /usr/bin/spawn-fcgi -a 127.0.0.1 -p 9000 -C 6 -u $FASTCGI_USER -g $FASTCGI_USER -f /usr/bin/php-cgi 编辑php-fastcgi服务脚本： /etc/rc.d/init.d/php-fastcgi #!/bin/sh &#160; # php-fastcgi - Use php-fastcgi to run php applications # # chkconfig: - 85 15 # description: [...]]]></description>
		<wfw:commentRss>http://www.firestudio.cn/2010/12/17/228.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>查看/修改Linux时区和时间</title>
		<link>http://www.firestudio.cn/2010/12/15/187.html</link>
		<comments>http://www.firestudio.cn/2010/12/15/187.html#comments</comments>
		<pubDate>Wed, 15 Dec 2010 02:01:58 +0000</pubDate>
		<dc:creator>Yozone Wong</dc:creator>
				<category><![CDATA[Linux相关]]></category>
		<category><![CDATA[应用技巧]]></category>

		<guid isPermaLink="false">http://www.firestudio.cn/?p=187</guid>
		<description><![CDATA[查看/修改Linux时区和时间 一、时区 1. 查看当前时区 date -R 2. 修改设置时区 方法(1) tzselect 方法(2) 仅限于RedHat Linux 和 CentOS timeconfig 方法(3) 适用于Debian dpkg-reconfigure tzdata 3. 复制相应的时区文件，替换系统时区文件；或者创建链接文件 cp /usr/share/zoneinfo/$主时区/$次时区 /etc/localtime 在中国可以使用： cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime 二、时间 1、查看时间和日期 date 2、设置时间和日期 将系统日期设定成1996年6月10日的命令 date -s 06/22/96 将系统时间设定成下午1点52分0秒的命令 date -s 13:52:00 3. 将当前时间和日期写入BIOS，避免重启后失效 hwclock -w 三、定时同步时间 * * * * * /usr/sbin/ntpdate 210.72.145.44 &#62; /dev/null [...]]]></description>
		<wfw:commentRss>http://www.firestudio.cn/2010/12/15/187.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>an error occurred during the filesystem check?的解决办法</title>
		<link>http://www.firestudio.cn/2010/12/02/179.html</link>
		<comments>http://www.firestudio.cn/2010/12/02/179.html#comments</comments>
		<pubDate>Thu, 02 Dec 2010 06:11:30 +0000</pubDate>
		<dc:creator>Yozone Wong</dc:creator>
				<category><![CDATA[Linux相关]]></category>

		<guid isPermaLink="false">http://www.firestudio.cn/?p=179</guid>
		<description><![CDATA[今天重启了一下客户的一个服务器，但是等了老半天就是启动不起来，最后通过KVM找到了原因，卡死在那儿了： 错误代码： ***an error occured during the filesystem check ***droping you to a shell; the system will rebot *** when you leave the shell ***warniong -- SELinux is active ***disableing security enforcement for system recovery ***Run 'setinforce 1' to reeinable Give root password for maintenance (or type control-D to continue): 我知道原因在于昨天看了csf的检测报告，说建议”Mount tmp as filesystem.”，然后从网上找到了把tmp目录挂载成文件系统的方法（http://kb.parallels.com/1410），重启之后系统检查磁盘说/filesystem/tmp_fs是个只读文件系统（Read-only filesystem），现在的做法就是编辑/etc/fstab，把昨天加的那一条给去掉。 [...]]]></description>
		<wfw:commentRss>http://www.firestudio.cn/2010/12/02/179.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>批量重命名文件</title>
		<link>http://www.firestudio.cn/2010/06/28/170.html</link>
		<comments>http://www.firestudio.cn/2010/06/28/170.html#comments</comments>
		<pubDate>Mon, 28 Jun 2010 06:27:30 +0000</pubDate>
		<dc:creator>Yozone Wong</dc:creator>
				<category><![CDATA[Linux相关]]></category>
		<category><![CDATA[应用技巧]]></category>

		<guid isPermaLink="false">http://www.firestudio.cn/?p=170</guid>
		<description><![CDATA[有时需要对大量文件进行重命名：如把所有.jpe文件后缀改名为.jpg文件等等。多数Windows/DOS用户可能都习惯了DOS中ren命令的使用方法： ren *.jpe *.jpg 在Linux中没有ren命令，mv命令也不支持这种使用方法，这使得不少用户误以为Linux没有批量重命名文件的功能。实际上并非如此，rename命令不仅可以轻松实现这一功能，而且还支持更为复杂的重命名操作。 rename 在多数系统中，rename是一个Perl脚本，rename的使用也支持Perl的正则表达式。 rename的基本语法是 rename &#60;em&#62;perl表达式&#60;/em&#62; 文件名 perl表达式用于修改文件名，如s开头的串表示替换。 举几个比较实用的例子： # 删除所有的.bak后缀： rename 's/\.bak$//' *.bak &#160; # 把.jpe文件后缀修改为.jpg： rename 's/\.jpe$/\.jpg/' *.jpe &#160; # 把文件名改为小写： rename 'y/A-Z/a-z/' * 原文：http://www.linux-wiki.cn/index.php/%E6%89%B9%E9%87%8F%E9%87%8D%E5%91%BD%E5%90%8D%E6%96%87%E4%BB%B6]]></description>
		<wfw:commentRss>http://www.firestudio.cn/2010/06/28/170.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>5 个 cd 命令小帖示</title>
		<link>http://www.firestudio.cn/2010/04/30/159.html</link>
		<comments>http://www.firestudio.cn/2010/04/30/159.html#comments</comments>
		<pubDate>Fri, 30 Apr 2010 02:37:39 +0000</pubDate>
		<dc:creator>Yozone Wong</dc:creator>
				<category><![CDATA[Linux相关]]></category>
		<category><![CDATA[应用技巧]]></category>
		<category><![CDATA[cd]]></category>
		<category><![CDATA[linux，命令行]]></category>
		<category><![CDATA[命令行]]></category>
		<category><![CDATA[小贴士]]></category>
		<category><![CDATA[技巧]]></category>

		<guid isPermaLink="false">http://www.firestudio.cn/?p=159</guid>
		<description><![CDATA[cd 是 Linux 命令行下最常用的命令之一。但是你真的了解 cd 命令的所有用法吗？我将在本文中向你介绍几个本人常用的 cd 命令小帖示，它们可以让你提高操作效率。 cd 不带任何参数，直接执行 cd 命令，这将转到你的 home 目录。其效果和 cd ~ 相同。 cd - 在 cd 命令后跟一个短横线，将转到你上一次访问的目录。这跟 cd .. 不同，后者将转到上一层目录。 cd ~user 这条命令和 cd ~ 很相似，不过它是转到 user 的 home 目录。 cd old new 该 cd 命令带两个参数，其作用是将上次所执行 cd 命令中的 old 替换成 new 并予以执行。比如我先前 cd 到 /usr/bin 目录，现在我想 cd 到 /opt/bin 目录，则可以执行： [...]]]></description>
		<wfw:commentRss>http://www.firestudio.cn/2010/04/30/159.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>10 个最酷的 Linux 单行命令</title>
		<link>http://www.firestudio.cn/2010/03/24/149.html</link>
		<comments>http://www.firestudio.cn/2010/03/24/149.html#comments</comments>
		<pubDate>Wed, 24 Mar 2010 09:42:30 +0000</pubDate>
		<dc:creator>Yozone Wong</dc:creator>
				<category><![CDATA[Linux相关]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[命令行]]></category>
		<category><![CDATA[技巧]]></category>

		<guid isPermaLink="false">http://www.firestudio.cn/?p=149</guid>
		<description><![CDATA[下面是来自 Commandlinefu 网站由用户投票决出的 10 个最酷的 Linux 单行命令，希望对你有用。 sudo !!以 root 帐户执行上一条命令。 python -m SimpleHTTPServer利用 Python 搭建一个简单的 Web 服务器，可通过 http://$HOSTNAME:8000 访问。 :w !sudo tee %在 Vim 中无需权限保存编辑的文件。 cd -更改到上一次访问的目录。 ^foo^bar将上一条命令中的 foo 替换为 bar，并执行。 cp filename{,.bak}快速备份或复制文件。 mtr google.comtraceroute + ping。 !whatever:p搜索命令历史，但不执行。 $ssh-copy-id user@host将 ssh keys 复制到 user@host 以启用无密码 SSH 登录。 ffmpeg -f x11grab -s wxga -r 25 [...]]]></description>
		<wfw:commentRss>http://www.firestudio.cn/2010/03/24/149.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wubi安装ubuntu或者升级内核后无法进入系统的解决方法</title>
		<link>http://www.firestudio.cn/2010/02/09/143.html</link>
		<comments>http://www.firestudio.cn/2010/02/09/143.html#comments</comments>
		<pubDate>Mon, 08 Feb 2010 16:30:52 +0000</pubDate>
		<dc:creator>Yozone Wong</dc:creator>
				<category><![CDATA[Linux相关]]></category>
		<category><![CDATA[boot]]></category>
		<category><![CDATA[grub]]></category>
		<category><![CDATA[ubuntu 9.10]]></category>
		<category><![CDATA[Wubi]]></category>
		<category><![CDATA[升级]]></category>
		<category><![CDATA[启动]]></category>
		<category><![CDATA[安装]]></category>
		<category><![CDATA[系统]]></category>

		<guid isPermaLink="false">http://www.firestudio.cn/?p=143</guid>
		<description><![CDATA[今天用Wubi在我的上网本上安装了Ubuntu 9.10，正在我高兴的时候发现我进不了系统了，只停留在sh:grub&#62;的画面，在网上搜到了这边文章，与大家分享以下： 今天早上开始摆弄起自己用wubi安装的linux ubuntu 9.10系统，在查找更新中看到内核升级到2.31-17了，我就选择更新，但在更新过程终有一个任务一直没有完成更新，我就直接按“Ctrl+C”给取消了，当我在重启系统时就遇到GRUB黑屏问题了。 屏幕上显示： GNU GRUB version 1.97~bea4 &#91;minimal BASH-like lin editing is supported For the first word,TAB licts possible command completions Anywhere elso TAB lists possible device/file completions&#93; sh:grub&#38;gt;（光标，让你输入东西） 按下TAB后 Possible commands are: &#91;badram boot cat chainloader configfile cupid dump echo exit export halt help initrd insmod linux list_env load _env loopback [...]]]></description>
		<wfw:commentRss>http://www.firestudio.cn/2010/02/09/143.html/feed</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>ubuntu下mplayer字幕乱码解决方法</title>
		<link>http://www.firestudio.cn/2009/09/01/117.html</link>
		<comments>http://www.firestudio.cn/2009/09/01/117.html#comments</comments>
		<pubDate>Tue, 01 Sep 2009 15:18:52 +0000</pubDate>
		<dc:creator>Yozone Wong</dc:creator>
				<category><![CDATA[Linux相关]]></category>
		<category><![CDATA[应用技巧]]></category>

		<guid isPermaLink="false">http://www.firestudio.cn/?p=117</guid>
		<description><![CDATA[建立一个中文字体的连接 ln -fs /usr/share/fonts/truetype/arphic/uming.ttf ~/.mplayer/subfont.ttf 在 MPlayer 点右键， Preferences -&#62; Subtitle &#38; OSD -&#62; Encoding，选择 Simplified Chinese charset (CP936)。 Preferences -&#62; Font， 在 Font 处输入刚才建立的连接文件名称，在 Encoding 处选择 Unicode config file 类似以下: sub_auto_load = “yes” sub_unicode = “no” sub_pos = “100&#8243; sub_overlap = “no” sub_cp = “cp936&#8243; font_factor = “0.750000&#8243; font_encoding = “unicode” 一般字幕文件都是cp936编码的，但是显示是用unicode。 原文：http://unix-cd.com/vc/www/22/2007-11/9595.html]]></description>
		<wfw:commentRss>http://www.firestudio.cn/2009/09/01/117.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

