昨天装redhat的时候计算机名没有做特殊修改,默认为localhost,今晚想起来改成了网站的老域名@LayoutCN。 需要修改/etc/sysconfig/network和/etc/hosts 两个文件。可以参考如下步骤
- [loongsky@LayoutCN ~]$ vi /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=LayoutCN - [loongsky@LayoutCN ~]$ vi /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
#127.0.0.1 localhost.localdomain localhost
192.168.1.4 LayoutCN LayoutCN
这样修改会不会重启的时候 sendmail 时特别慢
我的修改是:network文件修改相同
hosts文件修改为127.0.0.1 LayoutCN localhost.localdomain localhost