尝试用certbot给我的网站加上Let's Encrypt证书的时候,提示这个:
- [root@japan_vultr_01 marchhappy.ml]# sudo certbot --nginx
- Saving debug log to /var/log/letsencrypt/letsencrypt.log
- Error while running nginx -c /etc/nginx/nginx.conf -t.
- nginx: [emerg] open() "/etc/nginx/nginx.conf" failed (2: No such file or directory)
- nginx: configuration file /etc/nginx/nginx.conf test failed
- The nginx plugin is not working; there may be problems with your existing configuration.
- The error was: MisconfigurationError('Error while running nginx -c /etc/nginx/nginx.conf -t.\n\nnginx: [emerg] open() "/etc/nginx/nginx.conf" failed (2: No such file or directory)\nnginx: configuration file /etc/nginx/nginx.conf test failed\n',)
复制代码 我找不到/etc/nginx,更别提那个nginx.conf,请问问题出在哪里了?是不是应该重装nginx?
|
-
ssh的错误提示
|