您的位置:首页 > 理论基础

修改Linux计算机名的方法

2011-03-17 11:51 225 查看

linux 修改计算机名

1、修改 /etc/sysconfig/network-----计算机名
vi /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=prince(prince为计算机名)
2、修改 /etc/hosts------网络上看到的host名
vi /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.1.120 prince prince (prince为计算机名称)
3、重启电脑
init 6
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: