我正在尝试在 amazon linux 2 上设置 ssl,但无法重新启动 apache
命令 :
sudo systemctl restart httpd
错误:
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
当我跑步时journalctl -xe
,我得到这个:
Aug 26 18:10:01 ip-something.ap-south-1.compute.internal systemd[1]: Removed slice User Slice of root.
-- Subject: Unit user-0.slice has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit user-0.slice has finished shutting down.
Aug 26 18:10:09 ip-something.ap-south-1.compute.internal sudo[16302]: ec2-user : TTY=pts/0 ; PWD=/etc/pki/tls/certs
Aug 26 18:10:09 ip-something.ap-south-1.compute.internal sudo[16302]: pam_unix(sudo:session): session opened for useAug 26 18:10:09 ip-something.ap-south-1.compute.internal sudo[16302]: pam_unix(sudo:session): session closed for useAug 26 18:10:18 ip-something.ap-south-1.compute.internal sudo[16307]: ec2-user : TTY=pts/0 ; PWD=/etc/pki/tls/certs
Aug 26 18:10:18 ip-something.ap-south-1.compute.internal sudo[16307]: pam_unix(sudo:session): session opened for useAug 26 18:10:18 ip-something.ap-south-1.compute.internal 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.
Aug 26 18:10:18 ip-something.ap-south-1.compute.internal systemd[1]: httpd.service: main process exited, code=exitedAug 26 18:10:18 ip-something.ap-south-1.compute.internal 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.
Aug 26 18:10:18 ip-something.ap-south-1.compute.internal systemd[1]: Unit httpd.service entered failed state.
Aug 26 18:10:18 ip-something.ap-south-1.compute.internal systemd[1]: httpd.service failed.
Aug 26 18:10:18 ip-something.ap-south-1.compute.internal sudo[16307]: pam_unix(sudo:session): session closed for use-bash
当我运行 , 时sudo apachectl configtest
,我得到:
Syntax OK
我该如何解决这个问题,谢谢
PS:我对linux很陌生,所以很抱歉,如果错误非常明显......再次感谢