<?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>waimv.com &#187; centos</title>
	<atom:link href="http://www.waimv.com/tag/centos/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.waimv.com</link>
	<description></description>
	<lastBuildDate>Fri, 09 Nov 2018 10:41:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Centos5.3 启动可以停止的服务</title>
		<link>http://www.waimv.com/linux/24/</link>
		<comments>http://www.waimv.com/linux/24/#comments</comments>
		<pubDate>Sat, 18 Sep 2010 08:09:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[centos]]></category>

		<guid isPermaLink="false">http://www.szpian.com/?p=24</guid>
		<description><![CDATA[设置服务 默认很多服务都是不需要的,服务越少越安全.. service acpid stop ; chkconfig acpid off service apmd stop ; chkconfig apmd off service atd stop ; chkconfig atd off service auditd stop ; chkconfig auditd off service autofs stop ; chkconfig autofs off service avahi-daemon stop ; chkconfig avahi-daemon off service bluetooth stop ; chkconfig bluetooth off service cpuspeed stop ; [...]]]></description>
			<content:encoded><![CDATA[<p>设置服务</p>
<p>默认很多服务都是不需要的,服务越少越安全..</p>
<p>service acpid stop ; chkconfig acpid off<br />
service apmd stop ; chkconfig apmd off<br />
service atd stop ; chkconfig atd off<br />
service auditd stop ; chkconfig auditd off<br />
service autofs stop ; chkconfig autofs off<br />
service avahi-daemon stop ; chkconfig avahi-daemon off<br />
service bluetooth stop ; chkconfig bluetooth off<br />
service cpuspeed stop ; chkconfig cpuspeed off<br />
service cups stop ; chkconfig cups off<br />
service firstboot stop ; chkconfig firstboot off<br />
service gpm stop ; chkconfig gpm off<br />
service haldaemon stop ; chkconfig haldaemon off<br />
service hidd stop ; chkconfig hidd off<br />
service hplip stop ; chkconfig hplip off<br />
service ip6tables stop ; chkconfig ip6tables off<br />
service isdn stop ; chkconfig isdn off<br />
service lm_sensors stop ; chkconfig lm_sensors off<br />
service mcstrans stop ; chkconfig mcstrans off<br />
service messagebus stop ; chkconfig messagebus off<br />
service netfs stop ; chkconfig netfs off<br />
service nfslock stop ; chkconfig nfslock off<br />
service pcscd stop ; chkconfig pcscd off<br />
service portmap stop ; chkconfig portmap off<br />
service restorecond stop ; chkconfig restorecond off<br />
service rpcgssd stop ; chkconfig rpcgssd off<br />
service rpcidmapd stop ; chkconfig rpcidmapd off<br />
service yum-updatesd stop ; chkconfig yum-updatesd off<br />
service smartd stop ; chkconfig smartd off</p>
<p>设置网卡</p>
<p>vi /etc/sysconfig/network-scripts/ifcfg-eth0<br />
service network restart</p>
<p>修改DNS,用opendns,当然也可以用机房提供的.</p>
<p>vi /etc/resolv.conf<br />
nameserver 208.67.222.222<br />
nameserver 208.67.220.220</p>
<p>修改SSH端口,也是安全起见</p>
<p>vi /etc/ssh/sshd_config<br />
Port 8021<br />
service sshd restart</p>
<p>更新常用编译工具包</p>
<p>yum install -y glibc* cpp gcc* openssl* make<br />
yum update -y</p>
<p>更改主机名</p>
<p>vi /etc/sysconfig/network<br />
HOSTNAME=yourhostname</p>
<p>安装XAMPP: http://sourceforge.net/projects/xampp/<br />
cd /opt<br />
wget http://nchc.dl.sourceforge.net/sourceforge/xampp/xampp-linux-1.7.tar.gz<br />
wget http://nchc.dl.sourceforge.net/sourceforge/xampp/xampp-linux-devel-1.7.tar.gz<br />
tar xvfz /opt/xampp-linux-1.7.tar.gz -C /opt<br />
tar xvfz /opt/xampp-linux-devel-1.7.tar.gz -C /opt<br />
ln -s /opt/lampp/lampp /etc/rc.d/rc3.d/S99lampp<br />
/opt/lampp/lampp start<br />
/opt/lampp/lampp security #设置密码</p>
<p>修改默认语言</p>
<p>vi /etc/sysconfig/i18n</p>
<p>改成LANG=”zh_CN.UTF-8″</p>
<p>然后</p>
<p>source /etc/sysconfig/i18n</p>
<p>更新YUM资源</p>
<p>cd /etc/yum.repos.d/</p>
<p>mv CentOS-Base.repo CentOS-Base.repo.bak</p>
<p>wget http://blog.s135.com/soft/linux/centos/5.2/CentOS-Base.repo</p>
]]></content:encoded>
			<wfw:commentRss>http://www.waimv.com/linux/24/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
