vim /etc/hosts
第一行加上 ip name (192.168.11.201 haha)
vim /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=haha
service network restart
hostname haha
hostname -i 192.168.11.201
vim /etc/hosts
第一行加上 ip name (192.168.11.201 haha)
vim /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=haha
service network restart
hostname haha
hostname -i 192.168.11.201