前提:需要我们把项目已经完全部署在了服务器上
- 1.进入certbot
- 2.选择自己配置的服务器和系统(我的是Nginx和Ubuntu18)
- 3.在服务器上依次运行
apt-get update-
apt-get install software-properties-common add-apt-repository universeadd-apt-repository ppa:certbot/certbotapt-get updateapt-get install certbot python-certbot-nginx-
certbot --nginx
- 4.最后你需要在阿里云安全组配置443端口,不然刷新网站之后无响应
- 在刷新网站就可以了
- 在刷新网站就可以了