执行命令:
hostnamectl set-hostname new-name
重启:
reboot
ok, 搞定
查看一下:
cat /etc/hostname
cat /etc/hosts
cat /net/sysconfig/network
没有问题, 好了
执行命令:
hostnamectl set-hostname new-name
重启:
reboot
ok, 搞定
查看一下:
cat /etc/hostname
cat /etc/hosts
cat /net/sysconfig/network
没有问题, 好了