- 论坛徽章:
- 0
|
设置hosts的以后,重启apache
root@nonoVPS ~# vim /etc/hosts
127.0.0.1 localhost
xxx.xxx.xxx.xxx nonoVPS
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
~
设置hosts的以后,重启apache提示:
# /etc/init.d/apache2 restart
Restarting web server: apache2apache2: Could not reliably determine the server's fully qualified domain name, using 173.255.217.132 for ServerName
... waiting .apache2: Could not reliably determine the server's fully qualified domain name, using xxx.xxx.xxx.xxx for ServerName
只有在/etc/hosts 里面的那句xxx.xxx.xxx.xxx nonoVPS 修改成xxx.xxx.xxx.xxx nonoVPS.localdomian nonoVPS 重启才不出错,这是什么原因呢?看别人的教程不用设置这个也可以啊? |
|