I am taking one Nagios online course, and I am following the instructions given there. There is a step to start httpd, but when I do, I got the following message:
Code: Select all
-- Subject: Unit httpd.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has begun starting up.
feb 25 14:09:39 localhost.localdomain httpd[4074]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localh
feb 25 14:09:39 localhost.localdomain httpd[4074]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
feb 25 14:09:39 localhost.localdomain httpd[4074]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
feb 25 14:09:39 localhost.localdomain httpd[4074]: no listening sockets available, shutting down
feb 25 14:09:39 localhost.localdomain httpd[4074]: AH00015: Unable to open logs
feb 25 14:09:39 localhost.localdomain systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
feb 25 14:09:40 localhost.localdomain kill[4083]: kill: cannot find process ""
feb 25 14:09:40 localhost.localdomain systemd[1]: httpd.service: control process exited, code=exited status=1
feb 25 14:09:40 localhost.localdomain systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: Unit httpd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has failed.
--
-- The result is failed.
feb 25 14:09:40 localhost.localdomain systemd[1]: Unit httpd.service entered failed state.
feb 25 14:09:40 localhost.localdomain systemd[1]: httpd.service failed.
Code: Select all
root@localhost nagios-4.3.4]# netstat -tulpn | grep :80
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1452/nginx: master
tcp6 0 0 :::8080 :::* LISTEN 1726/java
tcp6 0 0 :::80 :::* LISTEN 1452/nginx: master
I already when to /etc/httpd/conf/httpd.conf and here it states that the port is 80, should I just change it to another? If so, which one should I use
Regards