Problem Description: After installing Apache install-y httpd, start the error as follows:
[[Email protected] ~]# service httpd start
Starting Httpd:httpd:apr_sockaddr_info_get () failed for it3246
Httpd:could not reliably determine the server ' s fully qualified domain name, using 127.0.0.1 for ServerName Determine
Workaround:
-
Edit Hosts File
[Email protected] html]# vi/etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
:: 1 localhost localhost.localdomain localhost6 localhost6.localdomain6
127.0.0.1 it3246
Note: it3246 is my own machine name based on your machine hostname [[email protected] html] Inside @ behind is the machine name
After you finish editing the Hosts file, a problem is resolved. There are also error hints
[Email protected] etc]# service httpd restart
Stop httpd: [OK]
Starting httpd:httpd:Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
2. Workaround:
Edit the httpd.conf file, search for "#ServerName", add ServerName it3246:80 or remove the original
#ServerName www.example.com:80 Change the previous comment back to it3246:80
[[email protected] conf]# ls
Extra httpd.conf Magic Mime.types Original
[Email protected] conf]# VI httpd.conf
#ServerName www.example.com:80
ServerName it3246:80
3. Restart Apache.
[[Email protected] etc]# service httpd status
HTTPD (PID 29506) is running ...
Note: The article it3246 is based on its own machine to replace the host name
This article is from the "Persistent It Man" blog, please be sure to keep this source http://it3246.blog.51cto.com/7479386/1845244
Troubleshooting Apache Boot Errors