升級環境是centos 7 服務器apache
服務器應具有的環境先運行
yum -y install yum-utils yum-config-manager --enable rhui-REGION-rhel-server-extras rhui-REGION-rhel-server-optional
完成這個之後,便可以通過運行來安裝cerbot:
sudo yum install certbot-apache 適用於apache環境
使用cerbot 生成證書繼續執行:
certbot certonly --webroot -w /var/www/example/ -d www.ws520.xin -d youdomain.com -w /var/www/other -d other.example.net -d another.other.example.net
-w 項目根目錄 eg.(/phpstudy/www/youproject/);
-d 域名地址 eg.(www.ws520.xin)要進行申請證書的域名