歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux基礎 >> 關於Linux

linux 如何修改計算機名

1、修改 /etc/sysconfig/network
vi /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=carel(carel為計算機名)
2、修改 /etc/hosts
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 carel carel (carel為計算機名稱)
3、重啟電腦
init 6

Copyright © Linux教程網 All Rights Reserved