安裝certbot
出自repair
- 1先裝epel
- sudo yum install epel-release
- 2再裝snapd
- sudo yum install snapd
- sudo systemctl enable --now snapd.socket
- sudo ln -s /var/lib/snapd/snap /snap
- 3再裝snapd core
- sudo snap install core
- sudo snap refresh core
- 4.安裝certbot
- sudo snap install --classic certbot
- sudo ln -s /snap/bin/certbot /usr/bin/certbot
- 5.apache 增加設定vhosts.conf
- <VirtualHost *:80>
- ServerName www.tajh.tyc.edu.tw
- DocumentRoot /var/www/html
- </VirtualHost>
- 6.執行certbot
- sudo certbot --apache