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
이 문제를 어떻게 해결할 수 있나요? 감사합니다.
추신: 저는 Linux를 처음 접했기 때문에 오류가 매우 명백하다면 죄송합니다... 다시 한 번 감사드립니다.