shutFuckingup 2011-06-18
怎样更改Centos主机名
第一步:
shell命令#hostnameyourhostname
第二步:
修改/etc/sysconfig/network中的hostname
[root@mycentos~]#vim/etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
#HOSTNAME=localhost.localdomain
HOSTNAME=yourhostname~
第三步:
修改/etc/hosts文件
[root@mycentos~]#vim/etc/hosts
#Donotremovethefollowingline,orvariousprograms
#thatrequirenetworkfunctionalitywillfail.
127.0.0.1localhost.localdomainlocalhostyourhostname
::1localhost6.localdomain6localhost6
----问鼎清云--专注IDC--主机托管--服务器托管
----因为专注,所以专业
http://www.chingcloud.com