Apache2启动时如何确保服务器配置可靠避免错误?

2026-06-11 05:23:12 284阅读 0评论 SEO资讯
  • 内容介绍
  • 文章标签
  • 相关推荐

本文共计93个文字,预计阅读时间需要1分钟。

相关专题内容,直接输出结果:

ah00558: apache2: could not reliably determine the server's fully qualified domain name, using 127.0.1.1. set the 'servername' directive globally to suppress this message 

Apache2启动时如何确保服务器配置可靠避免错误?

 

出现以上情况只要修改一下Apache的配置文件即可:

Apache2启动时如何确保服务器配置可靠避免错误?

在配置文件 apache2.conf里面加入一行

 ServerName localhost:80

 然后重启Apache服务就可以了

sudo /etc/init.d/apache2 restart

本文共计93个文字,预计阅读时间需要1分钟。

相关专题内容,直接输出结果:

ah00558: apache2: could not reliably determine the server's fully qualified domain name, using 127.0.1.1. set the 'servername' directive globally to suppress this message 

Apache2启动时如何确保服务器配置可靠避免错误?

 

出现以上情况只要修改一下Apache的配置文件即可:

Apache2启动时如何确保服务器配置可靠避免错误?

在配置文件 apache2.conf里面加入一行

 ServerName localhost:80

 然后重启Apache服务就可以了

sudo /etc/init.d/apache2 restart