CENTOS系統安裝完成後的記錄

vi /etc/selinux/config
SELINUX=enforcing ==>
SELINUX=disabled

/etc/init.d/anacron stop
chkconfig –level 2345 anacron off

/etc/init.d/atd stop
chkconfig –level 345 atd off

/etc/init.d/autofs stop
chkconfig –level 345 autofs off

/etc/init.d/iptables stop
chkconfig –level 2345 iptables off

/etc/init.d/ip6tables stop
chkconfig –level 2345 ip6tables off

/etc/init.d/kudzu stop
chkconfig –level 345 kudzu off

/etc/init.d/portmap stop
chkconfig –level 345 portmap off

/etc/init.d/cups stop
chkconfig –level 2345 cups off

/etc/init.d/sendmail stop
chkconfig –level 2345 sendmail off

rpc.statd其實是 nfsclock
/etc/init.d/nfslock stop
chkconfig –level 345 nfslock off

/etc/init.d/auditd stop
chkconfig –level 2345 auditd off

/etc/init.d/bluetooth stop
chkconfig –level 2345 bluetooth off

/etc/init.d/firstboot stop
chkconfig –level 35 firstboot off

/etc/init.d/gpm stop
chkconfig –level 2345 gpm off

/etc/init.d/hidd stop
chkconfig –level 2345 hidd off

/etc/init.d/mcstrans stop
chkconfig –level 2345 mcstrans off

/etc/init.d/netfs stop
chkconfig –level 345 netfs off

/etc/init.d/avahi-daemon stop
chkconfig –level 345 avahi-daemon off

/etc/init.d/pcscd stop
chkconfig –level 2345 pcscd off

/etc/init.d/restorecond stop
chkconfig –level 2345 restorecond off

/etc/init.d/rpcgssd stop
chkconfig –level 345 rpcgssd off

/etc/init.d/rpcidmapd stop
chkconfig –level 345 rpcidmapd off

/etc/init.d/xfs stop
chkconfig –level 2345 xfs off

更新所有套件
yum update

安裝mysql db
yum -y install mysql mysql-server mysql-devel
chkconfig –level 2345 mysqld on
/etc/init.d/mysqld start
mysqladmin -u root password your-new-password

/etc/init.d/yum-updatesd stop
chkconfig –level 345 yum-updatesd off

====關 ssd root 連線====
vi /etc/ssh/sshd_config
#PermitRootLogin yes
==>PermitRootLogin no
/etc/init.d/sshd restart

Web
yum install httpd php php-mysql php-mcrypt php-mhash php-mbstring php-xml php-gd php-devel rsync xinetd ntp

chkconfig –level 2345 httpd on
/etc/init.d/httpd start

create web directory
chmod 755 directory

vi /etc/httpd/connf/httpd.conf 做一些修改