0
点赞
收藏
分享

微信扫一扫

centos 6 7更改主机名 命令添加ip

杨沐涵 2022-06-27 阅读 32

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 条评论