6:vi /etc/sysconfig/network 中hostname =主机名 vi /etc/hosts 添加127.0.0.1相应的主机名
7: hostnamectl set-hostname 主机名
6:ifconfig eth0:0 10.10.10.26/24 up |down
7:ip addr add 10.10.10.26/24 dev eth0
centos 6 7更改主机名 命令添加ip
阅读 33
2022-06-27
6:vi /etc/sysconfig/network 中hostname =主机名 vi /etc/hosts 添加127.0.0.1相应的主机名
7: hostnamectl set-hostname 主机名
6:ifconfig eth0:0 10.10.10.26/24 up |down
7:ip addr add 10.10.10.26/24 dev eth0
相关推荐
精彩评论(0)