标签:network net orm zha serve stat 地址 ipad 修改主机名
直接运行:setup,根据提示修改
1.修改主机名:vi /etc/sysconfig/network
NETWORKING=yes HOSTNAME=shizhan1
2.修改ip地址:vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0 TYPE=Ethernet ONBOOT=yes #是否开机启用 BOOTPROTO=static #ip地址设置为静态 IPADDR=192.168.232.200 NETMASK=255.255.255.0
service network restart
inconfig eth0 down/up
3.修改ip地址和主机名的映射关系:vi /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 192.168.232.200 shizhan1
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.0.101 server1.itcast.cn
标签:network net orm zha serve stat 地址 ipad 修改主机名
原文地址:https://www.cnblogs.com/yaboya/p/8999689.html