Configure IP
/etc/sysconfig/network-scripts/ifcfg-eth0 (Eth0 represents the first NIC). DEVICE=eth0 //Network card Code, Correspondence with Ifcfg-eth0 type=ethernet //Device Type onboot=yes //whether to start the device, Change to No then this device does not start nm_controlled=no//whether to start the NetworkManager service, in order to test convenience, we generally turn it off bootproto=none How to get the                //IP, Instead, DHCP automatically gets the ipipaddr=192.168.0.103 // Static IP Address prefix=255.255.255.0 //Subnet Mask gateway=192.168.0.1 //Default Gateway dns1=114.114.114.114 //dns Address defroute=yes //IPV6INIT=no // Whether to start IPV6, we turn it off name= "System eth0" //Device Name arpcheck=no //Check Userctl=no
Close NetworkManager
[Email protected]_server ~]# service NetworkManager restart or [[email protected]_server ~]#/etc/init.d/networkmanager Stop boot does not start [[email protected]_server ~]# Chkconfignetworkmanager off
Turn off SELinux iptables
[[Email protected]_server ~]# vi/etc/selinux/configselinux=disabled[[email protected]_server ~]# service iptables stop [Email protected]_server ~]# chkconfig iptables off
Replace the Yum source
[[email protected]_server ~]# cd /etc/yum.repos.d/[[ Email protected]_server yum.repos.d]# yum -y install wget[[email protected] _server yum.repos.d]# wget http://mirrors.163.com/.help/centos6-base-163.repo [[email protected]_server yum.repos.d]# mv centos-base.repo centos-base.repo.bak[[email protected]_server yum.repos.d]# mv centos6-base-163.repo centos-base.repo[[email protected]_server yum.repos.d]# yum clean all[[email protected]_server Yum.repos.d]# yum makecache[[email protected]_server yum.repos.d]# rpm -uvh http://mirrors.ustc.edu.cn/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm [[email protected] _server yum.repos.d]# rpm -ivh http://repo.zabbix.com/zabbix/2.4/rhel/6/x86_64/ zabbix-release-2.4-1.el6.noarch.rpm
Recommended IT data search engine Web search engine http://www.yunpanos.com
Technical Blog Http://www.021soso.com
This article is from "a Pierce Arrow" blog, please be sure to keep this source http://centos2015.blog.51cto.com/9880217/1710822
Linux initialization Configuration-Lab environment