Basic configuration after CentOS6_mini_x64 installation 1. disable SELinux www.2cto.com # vim/etc/selinux/config ***************************** * **************************** SELINUX = disabledSELINUXTYPE = targeted ***** **************************************** * ************ # setenforce 0 www.2cto.com 2. configure the network # id # ifconfig # vi/etc/sysconfig/network-scripts/ifcfg-eth0 ********************** * ********************************** DEVICE = eth0ONBOOT = yesBOOTPROTO = staticBROADCAST = 192.1.1.1HWADDR = 00: 0B: 2F: 6C: D3: 8 FIPADDR = 192.1.1.8NETMASK = 255.255.255.0NETWORK = 192.168.1.0 ******************************** * ************************* # vi/etc/hosts ******* **************************************** * *********** 192.1.1.8 test. centos127.0.0.1 localhost. localdomain localhost4 localhost4.localdomain4: 1 localhost. localdomain localhost6 localhost6.localdomain6 ************************************* * ******************** # vi/etc/resolv. conf *************************************** * ****************** nameserver 192.1.1.1nameserver 8.8.8.8 ***************** **************************************** ** # service network restart # ifconfig # ping 127.0.0.1 # ping localhost # ping www.163.com 3. replace update source # yum-y install wget # cd/root # pwd # wget http://mirrors.163.com/.help/CentOS6-Base-163.repo#mv/etc/yum. repos. d/CentOS-Base.repo/etc/yum. repos. d/CentOS-Base.repo.backup # mv/root/CentOS6-Base-163.repo/etc/yum. repos. d/CentOS-Base.repo # yum makecache 4. install common software # yum-y install openssh-server # yum-y install sudo # yum-y install vim # yum-y install unzip www.2cto.com 5. create a management user # useradd-m-U test # usermod-a-G root test # passwd test # id test # login do-f/etc/sudoers 6. service startup configuration # chkconfig -- level 2345 sshd on # service sshd status # chkconfig -- level 2345 iptables on # service iptables status