[故障]-[Linux] Apache服务无法启动

故障描述:

今天APACHE服务器突然无法启动,用命令service httpd restart 出现下面这条语句,但是APACHE还是无法正常运行,重新启动电脑后,可以了,但是service httpd restart 后,又不能正常访问了。

Starting httpd: httpd: Could not determine the server's
       fully qualified domain name, using 127.0.0.1 for ServerName

解决办法:

1. 修改/etc/hosts,格式如下:127.0.0.1   www.jci.jx.cn    www    localhost.localdomain    localhost.

2 .修改/opt/apache/conf/httpd.conf , 将ServerName www.jci.jx.cn:80一项改为 ServerName 127.0.0.1.

你可能感兴趣的:(故障解决)