1.网络:
网卡设置
vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=10.0.0.100 //你为服务器设定的IP地址
NETMASK=255.255.255.0
BROADCAST=10.0.0.255
GATEWAY=10.0.0.1 //网关
/etc/rc.d/init.d/network restart 网卡将生效
定义本地主机名:/etc/sysconfig/network
hostname xxx
本地解析设置:/etc/hosts
dns设置
/etc/resdv.conf
Nameserver 163.1.1.4
Nameserver 10.55.0.33
防火墙设置
vi /etc/selinux/config
把SELINUX=enforcing 改成 SELINUX=disabled。
暂时关闭的方法,就是 /usr/sbin/setenforce 0
chkconfig --level 35 iptables off
chkconfig iptables off
使生效:service iptables stop