Ubuntu 中用 apt-get 安装apache2 ,重新启动会提示如下的错误:
apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName
… waiting apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName
原因:没有默认的服务器名称
解决:
1. 打开 httpd.conf
2. 输入:Servername Localhost
3. 重启动apache2
正解,很多时候嫌麻烦直接漠视这个错误的