full qualified hostname解决方法

#<--- full qualified hostname !!解决方法


cause:在sysctl.cfg中配置kernel参数和hosts配置名称有出入


solution:


1. 核对sysctl.cfg中kernel.hostname、kernel.domain和hosts中是否一致,最后再检查/etc/sysconfig/network中的hostname配置三者是否统一。



[root@ilearn ~]# vi /etc/sysctl.conf


 kernel.hostname   = ilearn.ilearning.com  #<--- full qualified hostname !!


 kernel.domainname = ilearn               #<--- correct domain name !!


去掉这两个参数配置


 


 查看hosts文件配置信息


[root@ilearn ~]# vi /etc/hosts


127.0.0.1       localhost.localdomain   localhost


192.168.1.159   ilearn.ilearning.com    ilearn



查看network配置信息


[root@ilearn ~]# vi /etc/sysconfig/network


NETWORKING=yes


NETWORKING IPV6=no


HOSTNAME=ilearn.ilearning.com



查看网卡mac地址信息



[root@ilearn ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0


DEVICE=eth0


BOOTPROTO=none


BROADCAST=192.168.1.255


HWADDR=00:0c:29:0c:6b:57        #网卡mac信息,在图形界面中Applications->System Settings-NetWork-Devices->Edit->HardWaredevice 点击probe --保存


IPADDR=192.168.1.159


NETMASK=255.255.255.0


NETWORK=192.168.1.0


ONBOOT=yes


TYPE=Ethernet


GATEWAY=192.168.1.1


USERCTL=no


IPV6INIT=no


PEERDNS=yes



最后重启


[root@ilearn ~]#  reboot



你可能感兴趣的:(hostname,解决方法,full,qualified)