首页 > 代码库 > Centos 7 修改hostname的方法
Centos 7 修改hostname的方法
[root@mondeolove ~]# hostname localhost.localdomain [root@mondeolove ~]# hostnamectl status Static hostname: localhost.localdomain Icon name: computer-vm Chassis: vm Machine ID: ce981d9b614f4041adbe2a86f6f2c440 Boot ID: 3ae5fce736ea47d9b9e1d9048cca9d7d Virtualization: vmware Operating System: CentOS Linux 7 (Core) CPE OS Name: cpe:/o:centos:centos:7 Kernel: Linux 3.10.0-123.el7.x86_64 Architecture: x86_64
[root@mondeolove ~]# hostnamectl set-hostname MonDeoLove.blog.51cto.com
[root@mondeolove ~]# hostnamectl status Static hostname: mondeolove.blog.51cto.com Pretty hostname: MonDeoLove.blog.51cto.com Icon name: computer-vm Chassis: vm Machine ID: ce981d9b614f4041adbe2a86f6f2c440 Boot ID: 3ae5fce736ea47d9b9e1d9048cca9d7d Virtualization: vmware Operating System: CentOS Linux 7 (Core) CPE OS Name: cpe:/o:centos:centos:7 Kernel: Linux 3.10.0-123.el7.x86_64 Architecture: x86_64
[root@mondeolove ~]# hostname mondeolove.blog.51cto.com
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。