CentOS8 修改主机名

1 查看主机名

$ hostname

2 修改主机名

$ hostnamectl set-hostname 主机名
$ hostnamectl set-hostname mycomputer

评论

暂无评论