分享页面

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

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

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

img

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

img

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

img

本文导读