当我使用以下命令在 debian 7.8 中启动 apache 服务时:
root@debian:/home/debian# service apache2 start
[....] Starting web server: apache2apache2: Could not reliably determine the server's fully qualified domain name, using ::1 for ServerName
。好的
In my /etc/hosts
127.0.0.1 localhost
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
在我的 /etc/hostname 中
localhost
如何解决问题?
答案1
编辑/etc/apache2/conf.d/httpd.conf
,添加行:
ServerName localhost