Rumah  >  Artikel  >  Operasi dan penyelenggaraan  >  Apache2启动错误Could not reliably determine the server's fully qualified domain name

Apache2启动错误Could not reliably determine the server's fully qualified domain name

PHP中文网
PHP中文网asal
2017-06-19 11:24:518618semak imbas
错误情况:

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 

 

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

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

 ServerName localhost:80

 然后重启Apache服务就可以了

sudo /etc/init.d/apache2 restart 

Atas ialah kandungan terperinci Apache2启动错误Could not reliably determine the server's fully qualified domain name. Untuk maklumat lanjut, sila ikut artikel berkaitan lain di laman web China PHP!

Kenyataan:
Kandungan artikel ini disumbangkan secara sukarela oleh netizen, dan hak cipta adalah milik pengarang asal. Laman web ini tidak memikul tanggungjawab undang-undang yang sepadan. Jika anda menemui sebarang kandungan yang disyaki plagiarisme atau pelanggaran, sila hubungi admin@php.cn