嘿,有人能告诉我有什么问题吗?我尝试在我的 Apache2 服务器上安装 SSL 连接。但现在 Apache 2 不重新加载。在最新的 Apache 2 版本和 PHP 7.3 上运行。
SSL 安装在:
Certificate: /etc/ssl/certificate.crt
Cabundle: /etc/ssl/cabundle.crt
Privatekey: /etc/ssl/private/privatekey.pem
我的默认 ssl 位于:/etc/apache2/sites-available/default-ssl.conf
安装后,我运行命令 a2ensite default-ssl -> systemctl reload apache2 -> ERROR
root@f27b49c0-afb6-42a7-813d-761a01e7c4cd:~# systemctl restart apache2
Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xe" for details.
root@f27b49c0-afb6-42a7-813d-761a01e7c4cd:~# journalctl -xe
Feb 01 10:19:30 f27b49c0-afb6-42a7-813d-761a01e7c4cd sshd[10306]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rho
Feb 01 10:19:31 f27b49c0-afb6-42a7-813d-761a01e7c4cd sshd[10306]: Failed password for invalid user id from 129.204.209.175 port 41704 ssh2
Feb 01 10:19:31 f27b49c0-afb6-42a7-813d-761a01e7c4cd sshd[10306]: Received disconnect from 129.204.209.175 port 41704:11: Bye Bye [preauth]
Feb 01 10:19:31 f27b49c0-afb6-42a7-813d-761a01e7c4cd sshd[10306]: Disconnected from 129.204.209.175 port 41704 [preauth]
Feb 01 10:19:34 f27b49c0-afb6-42a7-813d-761a01e7c4cd sshd[10313]: Invalid user postgres from 161.117.7.172 port 60432
Feb 01 10:19:34 f27b49c0-afb6-42a7-813d-761a01e7c4cd sshd[10313]: input_userauth_request: invalid user postgres [preauth]
Feb 01 10:19:34 f27b49c0-afb6-42a7-813d-761a01e7c4cd sshd[10313]: pam_unix(sshd:auth): check pass; user unknown
Feb 01 10:19:34 f27b49c0-afb6-42a7-813d-761a01e7c4cd sshd[10313]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rho
Feb 01 10:19:36 f27b49c0-afb6-42a7-813d-761a01e7c4cd sshd[10313]: Failed password for invalid user postgres from 161.117.7.172 port 60432 ssh2
Feb 01 10:20:00 f27b49c0-afb6-42a7-813d-761a01e7c4cd sshd[10321]: Accepted password for root from 95.90.214.5 port 22391 ssh2
Feb 01 10:20:00 f27b49c0-afb6-42a7-813d-761a01e7c4cd sshd[10321]: pam_unix(sshd:session): session opened for user root by (uid=0)
Feb 01 10:20:00 f27b49c0-afb6-42a7-813d-761a01e7c4cd sshd[10327]: Accepted password for root from 95.90.214.5 port 22347 ssh2
Feb 01 10:20:00 f27b49c0-afb6-42a7-813d-761a01e7c4cd sshd[10327]: pam_unix(sshd:session): session opened for user root by (uid=0)
Feb 01 10:20:26 f27b49c0-afb6-42a7-813d-761a01e7c4cd sshd[10321]: pam_unix(sshd:session): session closed for user root
Feb 01 10:20:27 f27b49c0-afb6-42a7-813d-761a01e7c4cd sshd[10327]: pam_unix(sshd:session): session closed for user root
Feb 01 10:20:30 f27b49c0-afb6-42a7-813d-761a01e7c4cd sshd[10506]: Accepted password for root from 95.90.214.5 port 22417 ssh2
Feb 01 10:20:30 f27b49c0-afb6-42a7-813d-761a01e7c4cd sshd[10506]: pam_unix(sshd:session): session opened for user root by (uid=0)
Feb 01 10:20:31 f27b49c0-afb6-42a7-813d-761a01e7c4cd sshd[10512]: Accepted password for root from 95.90.214.5 port 22423 ssh2
Feb 01 10:20:31 f27b49c0-afb6-42a7-813d-761a01e7c4cd sshd[10512]: pam_unix(sshd:session): session opened for user root by (uid=0)
Feb 01 10:20:35 f27b49c0-afb6-42a7-813d-761a01e7c4cd systemd[1]: Stopping The Apache HTTP Server...
-- Subject: Unit apache2.service has begun shutting down
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit apache2.service has begun shutting down.
Feb 01 10:20:35 f27b49c0-afb6-42a7-813d-761a01e7c4cd apachectl[10556]: apache2: Syntax error on line 225 of /etc/apache2/apache2.conf: Syntax error on
Feb 01 10:20:35 f27b49c0-afb6-42a7-813d-761a01e7c4cd apachectl[10556]: Action 'stop' failed.
Feb 01 10:20:35 f27b49c0-afb6-42a7-813d-761a01e7c4cd apachectl[10556]: The Apache error log may have more information.
Feb 01 10:20:35 f27b49c0-afb6-42a7-813d-761a01e7c4cd systemd[1]: apache2.service: Control process exited, code=exited status=1
Feb 01 10:20:36 f27b49c0-afb6-42a7-813d-761a01e7c4cd systemd[1]: Stopped The Apache HTTP Server.
-- Subject: Unit apache2.service has finished shutting down
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit apache2.service has finished shutting down.
Feb 01 10:20:36 f27b49c0-afb6-42a7-813d-761a01e7c4cd systemd[1]: apache2.service: Unit entered failed state.
Feb 01 10:20:36 f27b49c0-afb6-42a7-813d-761a01e7c4cd systemd[1]: apache2.service: Failed with result 'exit-code'.
Feb 01 10:20:36 f27b49c0-afb6-42a7-813d-761a01e7c4cd systemd[1]: apache2.service: Failed to reset devices.list: Operation not permitted
Feb 01 10:20:36 f27b49c0-afb6-42a7-813d-761a01e7c4cd systemd[1]: apache2.service: Failed to set invocation ID on control group /system.slice/apache2.se
Feb 01 10:20:36 f27b49c0-afb6-42a7-813d-761a01e7c4cd systemd[1]: Starting The Apache HTTP Server...
-- Subject: Unit apache2.service has begun start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit apache2.service has begun starting up.
Feb 01 10:20:36 f27b49c0-afb6-42a7-813d-761a01e7c4cd apachectl[10561]: apache2: Syntax error on line 225 of /etc/apache2/apache2.conf: Syntax error on
Feb 01 10:20:36 f27b49c0-afb6-42a7-813d-761a01e7c4cd apachectl[10561]: Action 'start' failed.
Feb 01 10:20:36 f27b49c0-afb6-42a7-813d-761a01e7c4cd apachectl[10561]: The Apache error log may have more information.
Feb 01 10:20:36 f27b49c0-afb6-42a7-813d-761a01e7c4cd systemd[1]: apache2.service: Control process exited, code=exited status=1
Feb 01 10:20:36 f27b49c0-afb6-42a7-813d-761a01e7c4cd systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: Unit apache2.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit apache2.service has failed.
--
-- The result is failed.
Feb 01 10:20:36 f27b49c0-afb6-42a7-813d-761a01e7c4cd systemd[1]: apache2.service: Unit entered failed state.
Feb 01 10:20:36 f27b49c0-afb6-42a7-813d-761a01e7c4cd systemd[1]: apache2.service: Failed with result 'exit-code'.