執行命令:
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
沒有問題, 好了