Linux临时修改主机名 | 永久修改主机名 提供三种更改方法 linux永久修改主机名 1、 更改配置文件 vi /etc/hostname 2、hostnamectl set-hostname good-name linux临时修改主机名 3、hostname temp-name