2012年1月18日 星期三

[CentOS] 更改Linux host name

1. Edit network file
>>vi /etc/sysconfig/network
NETWORK=Yes
HOSTNAME=lnx02
GATEWAY=192.168.20.254

2. Use hostname to assign new name
>>hostname lnx02

3. Use hostname to double check
>>hostname
# lnx02

4. Edit /etc/hosts on both local and YP

沒有留言:

張貼留言