centos 7修改方式:
hostnamectl set-hostname hostuser
reboot
或者直接vi /etc/hostname
添加内容:
hostuser
检查修改效果
[chenquan@hostuser ~]$ hostname
hostuser
[chenquan@hostuser ~]$ cat /etc/hostname
hostuser
[chenquan@hostuser ~]$
wx5b6d6c951e615 博主文章分类:linux ©著作权
centos 7修改方式:
hostnamectl set-hostname hostuser
reboot
或者直接vi /etc/hostname
添加内容:
hostuser
检查修改效果
[chenquan@hostuser ~]$ hostname
hostuser
[chenquan@hostuser ~]$ cat /etc/hostname
hostuser
[chenquan@hostuser ~]$
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M