广告位
Centos7 hostnamectl 设置主机名
作者: 分类:Linux浏览(1,344)2021-10-28

查看hostname信息


root@xxx ~]# 
Static hostname: 361way
Icon name: computer-desktop
Chassis: desktop
Machine ID: 6917731f5fe447d0bca296ed2802e250
Boot ID: e0d20bc2a3a4474c960394967d33ab53
Operating System: CentOS  7 (Core)
CPE OS Name: cpe:/o:centos:centos:7
Kernel: Linux 3.10.0-123.6.3.el7.x86_64
Architecture: x86_64

设置主机名

hostnamectl set-hostname name
图片压缩在线工具 tools online