Amazon Linux 2(ec2インスタンス)用のSSLを設定しようとすると、Apacheを再起動できません。

Amazon Linux 2(ec2インスタンス)用のSSLを設定しようとすると、Apacheを再起動できません。

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に初めて遭遇したので、エラーが非常に明白であれば申し訳ありません...もう一度ありがとう。

ベストアンサー1

おすすめ記事