我完全不能理解的NGINX错误

yzuktlbb  于 2022-09-20  发布在  Nginx
关注(0)|答案(1)|浏览(172)

当我尝试启动nginx或apt重新加载时,我收到以下错误:

● 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 INSTANCE-20211219-2046 5.13.0-1021-Oracle#26~20.04.1-Ubuntu SMP Mon Mar 7 14:30:17 UTC 2022 aarch64 GNU/LINUX

zazmityj

zazmityj1#

我解决了这个问题,方法是完全重新加载并擦除nginx,然后在从cert bot配置中删除证书后重新生成它们:3

相关问题