summary:
thinkphp configures pseudostatic to enable on Apache, restart Apache1 restart failed and reported an error
Job for failed because the control process exited with error code. See "systemctl status " and "journalctl -xe" for details
Yes, look at the status
Execute the command systemctl status
[root@cloud1 bin]# systemctl status ● - The Apache HTTP Server Loaded: loaded (/usr/lib/systemd/system/; disabled; vendor preset: disabled) Active: failed (Result: exit-code) since five 2016-08-26 11:13:09 CST; 6min ago Docs: man:httpd(8) man:apachectl(8) Process: 9915 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE) Process: 9913 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE) Main PID: 9913 (code=exited, status=1/FAILURE) 8moon 26 11:13:09 httpd[9913]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80 8moon 26 11:13:09 httpd[9913]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80 8moon 26 11:13:09 httpd[9913]: no listening sockets available, shutting down 8moon 26 11:13:09 httpd[9913]: AH00015: Unable to open logs 8moon 26 11:13:09 systemd[1]: : main process exited, code=exited, status=1/FAILURE 8moon 26 11:13:09 kill[9915]: kill: cannot find process "" 8moon 26 11:13:09 systemd[1]: : control process exited, code=exited status=1 8moon 26 11:13:09 systemd[1]: Failed to start The Apache HTTP Server. 8moon 26 11:13:09 systemd[1]: Unit entered failed state. 8moon 26 11:13:09 systemd[1]: failed.
From above, you can see that port 80 is occupied
implementjournalctl -xe
[root@cloud1 bin]# journalctl -xe -- -- Unit has finished starting up. -- -- The start-up result is done. 8moon 26 11:01:01 systemd[1]: Starting Session 9830 of user root. -- Subject: Unit has begun start-up -- Defined-By: systemd -- Support: /mailman/listinfo/systemd-devel -- -- Unit has begun starting up. 8moon 26 11:01:01 CROND[9744]: (root) CMD (run-parts /etc/) 8moon 26 11:01:01 run-parts(/etc/)[9747]: starting 0anacron 8moon 26 11:01:01 run-parts(/etc/)[9753]: finished 0anacron 8moon 26 11:01:01 run-parts(/etc/)[9755]: starting 8moon 26 11:01:01 run-parts(/etc/)[9759]: finished 8moon 26 11:10:01 systemd[1]: Started Session 9831 of user root. -- Subject: Unit has finished start-up -- Defined-By: systemd -- Support: /mailman/listinfo/systemd-devel -- -- Unit has finished starting up. -- -- The start-up result is done. 8moon 26 11:10:01 systemd[1]: Starting Session 9831 of user root. -- Subject: Unit has begun start-up -- Defined-By: systemd -- Support: /mailman/listinfo/systemd-devel -- -- Unit has begun starting up. 8moon 26 11:10:01 CROND[9870]: (root) CMD (/usr/lib64/sa/sa1 1 1) 8moon 26 11:13:09 polkitd[1171]: Registered Authentication Agent for unix-process:9908:450142261 (system bus name :1.19686 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object p 8moon 26 11:13:09 systemd[1]: Starting The Apache HTTP Server... -- Subject: Unit has begun start-up -- Defined-By: systemd -- Support: /mailman/listinfo/systemd-devel -- -- Unit has begun starting up. 8moon 26 11:13:09 httpd[9913]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80 8moon 26 11:13:09 httpd[9913]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80 8moon 26 11:13:09 httpd[9913]: no listening sockets available, shutting down 8moon 26 11:13:09 httpd[9913]: AH00015: Unable to open logs 8moon 26 11:13:09 systemd[1]: : main process exited, code=exited, status=1/FAILURE 8moon 26 11:13:09 kill[9915]: kill: cannot find process "" 8moon 26 11:13:09 systemd[1]: : control process exited, code=exited status=1 8moon 26 11:13:09 systemd[1]: Failed to start The Apache HTTP Server. -- Subject: Unit has failed -- Defined-By: systemd -- Support: /mailman/listinfo/systemd-devel -- -- Unit has failed. -- -- The result is failed. 8moon 26 11:13:09 systemd[1]: Unit entered failed state. 8moon 26 11:13:09 systemd[1]: failed. 8moon 26 11:13:09 polkitd[1171]: Unregistered Authentication Agent for unix-process:9908:450142261 (system bus name :1.19686, object path /org/freedesktop/PolicyKit1/Authenticatio
This is the log above
Check the files in Apache and find Listen 80 twice, once, once
Add #Listen 80 in the virtual machine and it's OK solved
Remark: apache\Apache\conf,extraandoriginalWhat is the meaning of a folder
extraMeaning additional extension
originalmeans source directory file
originalFolders are the source file backup of configuration files, and what you really need to configure is the files under the conf directory and the additional extended configuration of the extra directory.
Thank you for reading, I hope it can help you. Thank you for your support for this site!