方法一 hostnamectl set-hostname 新名字
方法二
vi /etc/hostname
新名字
wq
保存
bash 或 exit 重新登录服务器就发现修改成功
方法一 hostnamectl set-hostname 新名字
方法二
vi /etc/hostname
新名字
wq
保存
bash 或 exit 重新登录服务器就发现修改成功
本文标题:CentOS7 永久修改计算机名
本文链接:https://www.haomeiwen.com/subject/scnowqtx.html
网友评论