centos 有时候会莫名奇妙的把hostname改成bogo
把这个修改回来可以使用一下方法:编辑 /etc/sysconfig/networks
把 HOSTNAME= 你的主机名
比如我的
HOSTNAME=myhostname
另外可以在/etc/hosts中加上
你的ip 主机名 别名
比如我的
192.168.1.103 myhostname mycomputeralias
centos 设置hostname
猜你喜欢
转载自robbiefeng.iteye.com/blog/2166423
今日推荐
周排行