Centos7.6如何用hostnamectl命令设置主机名
资讯 2025-03-02 11:17 226

Centos7.6如何用hostnamectl命令设置主机名

Centos7.6如何用hostnamectl命令设置主机名呢?本文给出周密说明。

1.显示当前主机设置,hostnamectl status

2.设置主机名,hostnamectl set-hostname 主机名

3.再次查看主机设置,hostnamectl status