本文共 128 字,大约阅读时间需要 1 分钟。
备注一下, 之前 CentOS要改主机名,得改多个文件的
CentOS7 和 Ubuntu 16.0.4 等 OS,需要修改机器的主机名的话,直接用如下方式即可无需重启:
无需重启
hostnamectl set-hostname server.name01
参考:
转载地址:http://izyjl.baihongyu.com/