首页 > Linux操作系统 > Linux操作系统 > Linux修改计算机名
1 修改 /etc/sysconfig/network中的hostname
vi /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=penguin
2 修改 /etc/hosts
vi /etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.2.9 penguin penguin (此计算机没有加入任何域中)
3 reboot
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/12125877/viewspace-327306/ ,如需转载,请注明出处,否则将追究法律责任。