Linux 系统环境搭建
学习环境: RHEL6.5-64 操作系统
1、iptables 清空
[root@xuegod63 ~]# iptables -F
[root@xuegod63 ~]# /etc/init.d/iptables save
[root@xuegod63 ~]# /etc/init.d/iptables stop #关闭防火墙
[root@xuegod63 ~]# chkcon'g iptables o( #关闭开机启动防火墙
2. selinux 关闭
[root@xuegod63 ~]# vim /etc/selinux/con'g
[root@xuegod63 ~]# reboot #重启后生效
[root@xuegod63 ~]# getenforce
Disabled
3. NetworkManager 关闭
[root@xuegod63 ~]# /etc/init.d/NetworkManager stop
[root@xuegod63 ~]# chkcon'g NetworkManager o(
[root@xuegod63 ~]# chkcon'g --list NetworkManager
NetworkManager 0:关闭 1:关闭 2:关闭 3:关闭 4:关闭 5:关闭 6:关闭
配置好:静态 IP
Vim /etc/syscon'g/network-scripts/ifcfg-eth0
最后一行添加
ARPCHECK=no
改:ONBOOT=no
为:ONBOOT=yes
配置 hosts
[root@xuegod63 ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.1.61 xuegod61.cn
192.168.1.62 xuegod62.cn
192.168.1.63 xuegod63.cn
192.168.1.64 xuegod64.cn
评论0
最新资源