<?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>Davy&#039;s Blog &#187; Linux</title>
	<atom:link href="http://blog.hao909.com/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.hao909.com</link>
	<description>Nothing is impossible­ for a willing heart.</description>
	<lastBuildDate>Tue, 31 Jan 2012 16:30:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Linux下禁用、启用SeLinux</title>
		<link>http://blog.hao909.com/linux%e4%b8%8b%e7%a6%81%e7%94%a8%e5%90%af%e7%94%a8selinux/</link>
		<comments>http://blog.hao909.com/linux%e4%b8%8b%e7%a6%81%e7%94%a8%e5%90%af%e7%94%a8selinux/#comments</comments>
		<pubDate>Sat, 06 Aug 2011 00:51:01 +0000</pubDate>
		<dc:creator>greenhawk</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.hao909.com/?p=689</guid>
		<description><![CDATA[一些Linux默认都是启用SeLinux的，在安装操作系统的时候我们可以选择开启或者关闭SeLinux，但是在安装完系统之后又如何开启与关闭呢？
在/etc/sysconf下有一个SeLinux文件，使用vi打开，更改其中的SELINUX项的值就可以了。
SELINUX=disable  禁用SeLinux
SELINUX=enforcing  使用SeLinux
关闭SELinux
1. 无须重起而暂时关闭SELinux
以root用户运行以下命令
# setenforce 0
这条命令的作用是把SELinux暂时设定成Permissive模式（关于Permissive Mode在以下会有介绍）
如果要恢复运行SELinux则可以运行
# setenforce 1
这条命令会把SELinux设定成Enforcing模式
2. 把SELinux永久设定为Permissive模式
这里需要讲一下Permissive和Enforcing模式的区别。 SELinux有三种模式：Enforcing, Permissive and Disable.
Enforcing模式就是应用SELinux所设定的Policy, 所有违反Policy的规则(Rules)都会被SELinux拒绝
Permissive和Enforcing的区别就在于它还是会遵循SELinux的Policy,但是对于违反规则的操作只会予以记录而并不会拒绝操作
Disable 顾名思义就是完全禁用SELinux
如果要永久设定为Permissive模式，我们就要修改SELinux的配置文件 /etc/sysconfig/selinux
(在RHEL5下这是一个symbolic link to /etc/selinux/conf)

# 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.
# [...]]]></description>
		<wfw:commentRss>http://blog.hao909.com/linux%e4%b8%8b%e7%a6%81%e7%94%a8%e5%90%af%e7%94%a8selinux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>.htaccess not working on apache web server</title>
		<link>http://blog.hao909.com/htaccess-not-working-on-apache-web-server/</link>
		<comments>http://blog.hao909.com/htaccess-not-working-on-apache-web-server/#comments</comments>
		<pubDate>Wed, 15 Dec 2010 13:40:07 +0000</pubDate>
		<dc:creator>greenhawk</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP Learn]]></category>
		<category><![CDATA[apache server]]></category>
		<category><![CDATA[apache web server]]></category>
		<category><![CDATA[htaccess files]]></category>
		<category><![CDATA[search httpd]]></category>

		<guid isPermaLink="false">http://blog.hao909.com/?p=515</guid>
		<description><![CDATA[Q: I already enabled mod_rewrite in httpd.conf file on apache server, but .htaccess configuration is not working at all. How can i fix this problem?
A:
Make sure AccessFileName set to .htaccess
Search httpd.conf for AccessFileName directive. It defines name of the distributed configuration file:

# AccessFileName: The name of the file to look for in each directory
# for [...]]]></description>
		<wfw:commentRss>http://blog.hao909.com/htaccess-not-working-on-apache-web-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to get List of Groups in Linux</title>
		<link>http://blog.hao909.com/how-to-get-list-of-groups-in-linux/</link>
		<comments>http://blog.hao909.com/how-to-get-list-of-groups-in-linux/#comments</comments>
		<pubDate>Wed, 22 Sep 2010 13:22:15 +0000</pubDate>
		<dc:creator>greenhawk</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.hao909.com/?p=496</guid>
		<description><![CDATA[less /etc/group
or
more /etc/group
]]></description>
		<wfw:commentRss>http://blog.hao909.com/how-to-get-list-of-groups-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to set up A Records and MX Records</title>
		<link>http://blog.hao909.com/how-to-set-up-a-records-and-mx-records/</link>
		<comments>http://blog.hao909.com/how-to-set-up-a-records-and-mx-records/#comments</comments>
		<pubDate>Mon, 23 Aug 2010 12:56:21 +0000</pubDate>
		<dc:creator>greenhawk</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[alias]]></category>
		<category><![CDATA[domain name]]></category>
		<category><![CDATA[host record]]></category>
		<category><![CDATA[hostname]]></category>
		<category><![CDATA[ip address]]></category>
		<category><![CDATA[mail server]]></category>
		<category><![CDATA[mx records]]></category>
		<category><![CDATA[uploads]]></category>
		<category><![CDATA[url forwarding]]></category>

		<guid isPermaLink="false">http://blog.hao909.com/?p=486</guid>
		<description><![CDATA[URL FORWARDING RECORDS




HOST NAME


TYPE


DATA



yourdomain.com
Forward (F)
http://www.someplace.com


www.yourdomain.com
Forward (F)
http://www.someplace.com



URL Forwarding records are used to redirect domains to another URL. A common  purpose is to point a domain to a website or page hosted elsewhere which usually  has a longer URL such as http://www.myispsite.com/~myname.html. Keep in mind  that the DATA part of the forwarding record must [...]]]></description>
		<wfw:commentRss>http://blog.hao909.com/how-to-set-up-a-records-and-mx-records/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Search for text in vi or vim</title>
		<link>http://blog.hao909.com/search-for-text-in-vi-or-vim/</link>
		<comments>http://blog.hao909.com/search-for-text-in-vi-or-vim/#comments</comments>
		<pubDate>Thu, 06 May 2010 13:08:58 +0000</pubDate>
		<dc:creator>greenhawk</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.hao909.com/?p=363</guid>
		<description><![CDATA[vi and vim have powerful searching capabilities because they bring  to bear the richness of regular expressions.
To search for the next occurence of the text ‘maybe’ from the current  cursor position, type:

/maybe

Search backward from the current position by using ? instead of / in the command.
Once you have searched for something, you can [...]]]></description>
		<wfw:commentRss>http://blog.hao909.com/search-for-text-in-vi-or-vim/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to excluding directories when zip files on Linux</title>
		<link>http://blog.hao909.com/how-to-excluding-directories-when-zip-files-on-linux/</link>
		<comments>http://blog.hao909.com/how-to-excluding-directories-when-zip-files-on-linux/#comments</comments>
		<pubDate>Thu, 01 Apr 2010 18:34:29 +0000</pubDate>
		<dc:creator>greenhawk</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[zip]]></category>

		<guid isPermaLink="false">http://blog.hao909.com/?p=274</guid>
		<description><![CDATA[All you needs is use the -x switch and list the files and directories to be excluded, separated by spaces. For example:

zip -r filename.zip directory -x directory/folderA\* directoryr/folderB\*

]]></description>
		<wfw:commentRss>http://blog.hao909.com/how-to-excluding-directories-when-zip-files-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

