Linux初期化構成-実験環境
2217 ワード
IPの構成
NetworkManagerを閉じる
/etc/sysconfig/network-scripts/ifcfg-eth0(eth0 )。
DEVICE=eth0 // , ifcfg-eth0
TYPE=Ethernet //
ONBOOT=yes // , no
NM_CONTROLLED=no// NetworkManager , ,
BOOTPROTO=none //IP , DHCP
IPIPADDR=192.168.0.103 // IP
PREFIX=255.255.255.0 //
GATEWAY=192.168.0.1 //
DNS1=114.114.114.114 //DNS
DEFROUTE=yes //
IPV6INIT=no // IPV6,
NAME="System eth0" //
ARPCHECK=no //
USERCTL=no
NetworkManagerを閉じる
[root@zabbix_server ~]# service NetworkManager restart
[root@zabbix_server ~]# /etc/init.d/NetworkManager stop
[root@zabbix_server ~]# chkconfigNetworkManager off
selinux iptables
[root@zabbix_server ~]# vi /etc/selinux/config
SELINUX=disabled
[root@zabbix_server ~]# service iptables stop
[root@zabbix_server ~]# chkconfig iptables off
yum
[root@zabbix_server ~]# cd /etc/yum.repos.d/
[root@zabbix_server yum.repos.d]# yum -y install wget
[root@zabbix_server yum.repos.d]# wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
[root@zabbix_server yum.repos.d]# mv CentOS-Base.repo CentOS-Base.repo.bak
[root@zabbix_server yum.repos.d]# mv CentOS6-Base-163.repo CentOS-Base.repo
[root@zabbix_server yum.repos.d]# yum clean all
[root@zabbix_server yum.repos.d]# yum makecache
[root@zabbix_server yum.repos.d]# rpm -Uvh http://mirrors.ustc.edu.cn/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
[root@zabbix_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
IT http://www.yunpanos.com
http://www.021soso.com