我完全无法理解的 nginx 错误



当我尝试启动nginx或apt reload时,我得到这个错误:

● nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2022-05-17 04:46:59 UTC; 8ms ago
Docs: man:nginx(8)
Process: 119844 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)
May 17 04:46:59 instance-20211219-2046 systemd[1]: Starting A high performance web server and a reverse proxy server...
May 17 04:46:59 instance-20211219-2046 nginx[119844]: nginx: [emerg] cannot load certificate "/etc/letsencrypt/live/bitwarden.joscodes.xyz/fullchain.pem": PEM_read_bio_X509_AUX() failed (SSL: error:0909006C:PEM routines:get_name:no start line:Expecting: TRUSTED CERTIFICATE)
May 17 04:46:59 instance-20211219-2046 nginx[119844]: nginx: configuration file /etc/nginx/nginx.conf test failed
May 17 04:46:59 instance-20211219-2046 systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
May 17 04:46:59 instance-20211219-2046 systemd[1]: nginx.service: Failed with result 'exit-code'.
May 17 04:46:59 instance-20211219-2046 systemd[1]: Failed to start A high performance web server and a reverse proxy server.

当我执行certbot certificates时,它告诉我没有安装证书,我不知道如何解决这个问题。

系统信息:Linux实例-20211219-2046 5.13.0-1021-oracle #26~20.04.1-Ubuntu SMP星期一Mar 7 14:30:17 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux

我通过完全重新加载和擦除NGINX来解决这个问题,然后在从cert bot配置中删除它们后重新生成证书:3

相关内容

  • 没有找到相关文章

最新更新