สวัสดีครับ
restart service ของ apache แล้วขึ้นแบบนี้ครับ
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
พอดู error ด้วยคำสั่ง systemctl status httpd.service ขึ้นว่าแบบนี้
httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2021-10-27 17:24:37 +07; 18min ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 2835 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
Process: 2833 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 2833 (code=exited, status=1/FAILURE)
Oct 27 17:24:37 registerweb systemd[1]: Starting The Apache HTTP Server...
Oct 27 17:24:37 registerweb httpd[2833]: AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/httpd/conf/httpd.conf:360
Oct 27 17:24:37 registerweb httpd[2833]: AH00557: httpd: apr_sockaddr_info_get() failed for registerweb
Oct 27 17:24:37 registerweb httpd[2833]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the '...is message
Oct 27 17:24:37 registerweb systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Oct 27 17:24:37 registerweb kill[2835]: kill: cannot find process ""
Oct 27 17:24:37 registerweb systemd[1]: httpd.service: control process exited, code=exited status=1
Oct 27 17:24:37 registerweb systemd[1]: Failed to start The Apache HTTP Server.
Oct 27 17:24:37 registerweb systemd[1]: Unit httpd.service entered failed state.
Oct 27 17:24:37 registerweb systemd[1]: httpd.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
สำหรับ journalctl -xe ขึ้นว่า
Oct 27 17:24:37 registerweb polkitd[1827]: Registered Authentication Agent for unix-process:2817:124791 (system bus name :1.35 [/usr/bin/pkttyagent --notify-fd 5 --fal
Oct 27 17:24:37 registerweb systemd[1]: Starting The Apache HTTP Server...
-- 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.
Oct 27 17:24:37 registerweb httpd[2833]: AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/httpd/conf/httpd.conf:360
Oct 27 17:24:37 registerweb httpd[2833]: AH00557: httpd: apr_sockaddr_info_get() failed for registerweb
Oct 27 17:24:37 registerweb httpd[2833]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' d
Oct 27 17:24:37 registerweb systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Oct 27 17:24:37 registerweb kill[2835]: kill: cannot find process ""
Oct 27 17:24:37 registerweb systemd[1]: httpd.service: control process exited, code=exited status=1
Oct 27 17:24:37 registerweb 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.
Oct 27 17:24:37 registerweb systemd[1]: Unit httpd.service entered failed state.
Oct 27 17:24:37 registerweb systemd[1]: httpd.service failed.
Oct 27 17:24:37 registerweb polkitd[1827]: Unregistered Authentication Agent for unix-process:2817:124791 (system bus name :1.35, object path /org/freedesktop/PolicyKi
Oct 27 17:30:01 registerweb systemd[1]: Started Session 4 of user root.
-- Subject: Unit session-4.scope has finished start-up
-- Defined-By: systemd
-- Support:
http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-4.scope has finished starting up.
--
-- The start-up result is done.
Oct 27 17:30:01 registerweb CROND[2845]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Oct 27 17:40:01 registerweb systemd[1]: Started Session 5 of user root.
-- Subject: Unit session-5.scope has finished start-up
-- Defined-By: systemd
-- Support:
http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-5.scope has finished starting up.
--
-- The start-up result is done.
Oct 27 17:40:01 registerweb CROND[2853]: (root) CMD (/usr/lib64/sa/sa1 1 1)
รบกวนดูให้หน่อยครับ อยู่ๆก็เป็น ssl ใช้ไม่ได้ centos 7.7
Restart service httpd ไม่ได้
restart service ของ apache แล้วขึ้นแบบนี้ครับ
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
พอดู error ด้วยคำสั่ง systemctl status httpd.service ขึ้นว่าแบบนี้
httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2021-10-27 17:24:37 +07; 18min ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 2835 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
Process: 2833 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 2833 (code=exited, status=1/FAILURE)
Oct 27 17:24:37 registerweb systemd[1]: Starting The Apache HTTP Server...
Oct 27 17:24:37 registerweb httpd[2833]: AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/httpd/conf/httpd.conf:360
Oct 27 17:24:37 registerweb httpd[2833]: AH00557: httpd: apr_sockaddr_info_get() failed for registerweb
Oct 27 17:24:37 registerweb httpd[2833]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the '...is message
Oct 27 17:24:37 registerweb systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Oct 27 17:24:37 registerweb kill[2835]: kill: cannot find process ""
Oct 27 17:24:37 registerweb systemd[1]: httpd.service: control process exited, code=exited status=1
Oct 27 17:24:37 registerweb systemd[1]: Failed to start The Apache HTTP Server.
Oct 27 17:24:37 registerweb systemd[1]: Unit httpd.service entered failed state.
Oct 27 17:24:37 registerweb systemd[1]: httpd.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
สำหรับ journalctl -xe ขึ้นว่า
Oct 27 17:24:37 registerweb polkitd[1827]: Registered Authentication Agent for unix-process:2817:124791 (system bus name :1.35 [/usr/bin/pkttyagent --notify-fd 5 --fal
Oct 27 17:24:37 registerweb systemd[1]: Starting The Apache HTTP Server...
-- 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.
Oct 27 17:24:37 registerweb httpd[2833]: AH00548: NameVirtualHost has no effect and will be removed in the next release /etc/httpd/conf/httpd.conf:360
Oct 27 17:24:37 registerweb httpd[2833]: AH00557: httpd: apr_sockaddr_info_get() failed for registerweb
Oct 27 17:24:37 registerweb httpd[2833]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' d
Oct 27 17:24:37 registerweb systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Oct 27 17:24:37 registerweb kill[2835]: kill: cannot find process ""
Oct 27 17:24:37 registerweb systemd[1]: httpd.service: control process exited, code=exited status=1
Oct 27 17:24:37 registerweb 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.
Oct 27 17:24:37 registerweb systemd[1]: Unit httpd.service entered failed state.
Oct 27 17:24:37 registerweb systemd[1]: httpd.service failed.
Oct 27 17:24:37 registerweb polkitd[1827]: Unregistered Authentication Agent for unix-process:2817:124791 (system bus name :1.35, object path /org/freedesktop/PolicyKi
Oct 27 17:30:01 registerweb systemd[1]: Started Session 4 of user root.
-- Subject: Unit session-4.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-4.scope has finished starting up.
--
-- The start-up result is done.
Oct 27 17:30:01 registerweb CROND[2845]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Oct 27 17:40:01 registerweb systemd[1]: Started Session 5 of user root.
-- Subject: Unit session-5.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-5.scope has finished starting up.
--
-- The start-up result is done.
Oct 27 17:40:01 registerweb CROND[2853]: (root) CMD (/usr/lib64/sa/sa1 1 1)
รบกวนดูให้หน่อยครับ อยู่ๆก็เป็น ssl ใช้ไม่ได้ centos 7.7