使用三丰云的免费云服务器搭配宝塔面板做环境测试的时候发现有时服务器无法获取Let's Encrypt的证书;这其实是在安装面板时,没有成功下载certbot-auto,导致无法正常获取Let's Encrypt证书,这个问题可以手动下载安装来解决。文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wg/47094.html
卸载可能损坏的epel源(若确定epel源没问题,可跳过):文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wg/47094.html
yum remove epel-release -y
下载脚本:文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wg/47094.html
wget -O /www/server/panel/certbot-auto http://download.bt.cn/install/certbot-auto.init -T 5
安装依赖(安装过程可能耗时比较长,大概需要5-10分钟,请耐心等待):文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wg/47094.html
chmod +x /www/server/panel/certbot-auto && /www/server/panel/certbot-auto -n
提示以下内容,说明安装成功文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wg/47094.html
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Missing command line flags. For non-interactive execution, you will need to specify a plugin on the comm