Linux initialization Configuration-Lab environment

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.