标签:免费https .com span 分享 文件 saving auto 域名 tin
免费https? 官方安装教程:https://certbot.eff.org/#centos6-nginx (以下是说明安装时遇到的);
wget https://dl.eff.org/certbot-auto && chmod a+x certbot-auto
WARNING: unable to check for updates. Saving debug log to /var/log/letsencrypt/letsencrypt.log Error while running nginx -c /etc/nginx/nginx.conf -t. nginx: [emerg] open() "/etc/nginx/mime.types" failed (2: No such file or directory) in /etc/nginx/nginx.conf:15 nginx: configuration file /etc/nginx/nginx.conf test failed Could not choose appropriate plugin: 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/mime.types" failed (2: No such file or directory) in /etc/nginx/nginx.conf:15\nnginx: configuration file /etc/nginx/nginx.conf test failed\n‘,) 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/mime.types" failed (2: No such file or directory) in /etc/nginx/nginx.conf:15\nnginx: configuration file /etc/nginx/nginx.conf test failed\n‘,)
解决方案:执行:
/certbot-auto --nginx --nginx-server-root=/usr/local/nginx/conf
选择 7; 需要添加HTTPS的域名
选择2;全部使用HTTPS
标签:免费https .com span 分享 文件 saving auto 域名 tin
原文地址:https://www.cnblogs.com/q1104460935/p/9459139.html