Linux更改计算机名称

1、修改:vim /etc/hosts

2、修改:vim /etc/sysconfig/network

3、重启:reboot

如不重启可以输入:hostname  新改的计算机名称,然后su

原文地址:https://www.cnblogs.com/xiaoxitest/p/6227082.html