【准备】
在运行命令之前,需要先打开 防火墙 上https 443端口

【安装脚本】
yum -y update
wget https://dl.eff.org/certbot-auto
chmod a+x certbot-auto
【加载1】
./certbot-auto
【加载2】
./certbot-auto
【安装配置】由于宝塔安装的环境路径,和lnmp不一样,所以需要重新定向
./certbot-auto --nginx --nginx-server-root=/www/server/nginx/conf
【自动获取证书】
./certbot-auto renew

网友评论