linux-网络配置
网络配置(所有节点)
修改主机名:vim /etc/sysconfig/network
NETWORKING = yes
HOSTNAME = cdh1
NETWORKING_IPV6 = no
PEERNTP = no
重启网络:service network restart
修改ip与主机名的对应关系:vim /etc/hosts
192.168.1.101 cdh1
192.168.1.102 cdh2
192.168.1.103 cdh3
网络配置(所有节点)
修改主机名:vim /etc/sysconfig/network
NETWORKING = yes
HOSTNAME = cdh1
NETWORKING_IPV6 = no
PEERNTP = no
重启网络:service network restart
修改ip与主机名的对应关系:vim /etc/hosts
192.168.1.101 cdh1
192.168.1.102 cdh2
192.168.1.103 cdh3