1安装Certbot yum install python2-certbot-nginx 2部署HTTPS证书 certbot --nginx certbot --nginx --nginx-server-root=/usr/local/nginx/conf (主要防止目录不是系统的默认目录) 3.注意安全组的443端口打开。 4. 将更新做成定时任务 certbot renew --dry-run