CentOS 6.5最小化安裝的圖解教程html
參考:http://www.osyunwei.com/archives/7174.htmllinux
CentOS 6.5最小化安裝後須要進行的操做nginx
第一步:關閉防火牆服務器
service iptables stop
chkconfig iptables off
第二步:關閉SELINUX
使用文本編輯工具打開 /etc/selinux/config
把 SELINUX=enforcing 註釋掉:#SELINUX=enforcing ,而後新加一行爲:SELINUX=disabled
保存,重啓系統。
若是不肯意重啓系統,則就能夠採用以下方式關閉SELINUX
/usr/sbin/setenforce 0 馬上關閉 SELINUX
/usr/sbin/setenforce 1 馬上啓用 SELINUX
第三步:編輯/etc/sysconfig/network-scripts/ifcfg-eth0文件
修改ONBOOT=no爲ONBOOT=yes 系統啓動時是否設置此網絡接口,設置爲yes時,系統啓動時激活此設備 ,這個很關鍵,若是想要啓用必定要設置爲yes,不然不管如何重啓都不會起做用
第四步:安裝開發工具
yum -y groupinstall "Development tools" "Development Libraries"
第五步:升級或者是更新現有的軟件包
yum -y install upgrade
yum -y install update
第六步:安裝setup工具
安裝setuptool:yum install setuptool
安裝系統服務管理:yum install ntsysv
安裝防火牆:yum install iptables
安裝setup中配套的防火牆設置:yum install system-config-securitylevel-tui
安裝setup中配套的網絡設置:yum install system-config-network-tui網絡
第七步:配置靜態ip地址和dns服務器使其能夠正常上網
若是使用網絡Yum源,針對yum相關的兩個配置文件無需做任何的改動,yum就能夠正常使用
第八步:yum -y install firefox elinks
這一步爲可選操做,因爲我須要是和nginx和Apache相關的測試環境,因此將此一併安裝
ide