ubuntu 用 apt-get 安装 apache2 时会出现的错误

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

关于 渔翁

能让你们知道的你们都知道了。
此条目发表在 资料 分类目录。将固定链接加入收藏夹。

ubuntu 用 apt-get 安装 apache2 时会出现的错误》有 1 条评论

  1. 张刚 说:

    正解,很多时候嫌麻烦直接漠视这个错误的 :razz:

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

*

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>