[url]http://www.ichiayi.com/wiki/tech/linux_hostname[/url]
su root
vim /etc/hosts
vim /etc/sysconfig/network
hostname命令查看当前hostname
重新登录
su root
vim /etc/hosts
vim /etc/sysconfig/network
hostname命令查看当前hostname
重新登录