[Fault] - [Linux] Apache Service Unable to start

xiaoxiao2021-03-06  23

Fault description:

Today, the apache server suddenly can't start, using the following statement with the command service httpd restart, but Apache still does not function properly, after restarting the computer, but after the service httpd restart, it will not access it normally.

Starting httpd: httpd: could not determine the server's full qualified domain name, use 127.0.0.1 for servername

Solution:

1. Modify / etc / hosts, the format is as follows: 127.0.0.1 www.jci.jx.cn www localhost.localdomain localhost.

2. Modify /opt/apache/conf/httpd.conf, change the servername www.jci.jx.cn: 80 to ServerName 127.0.0.0.1.

转载请注明原文地址:https://www.9cbs.com/read-39865.html

New Post(0)