1.安装软件 yum install certbot python-certbot-nginx 2.申请证书并自动配置Nginx certbot --nginx -d yourdomain.com 3.设置自动续期(每月1日执行) 0 0 1 * * certbot renew --quiet --