Linux

[Solved] Let’s Encrypt Could not bind TCP port 80 because it is already in use by another process on this system (such as a web server)

更新コマンドが失敗する場合

環境に合わせて「–apache」や「–nginx」オプションを追加してあげる

 

 

このブログのWebサーバはNginなので「–nginx」を追加した

/var/lib/snapd/snap/bin/certbot renew --no-self-upgrade --nginx --deploy-hook "systemctl restart nginx"

 

 

# /var/lib/snapd/snap/bin/certbot renew --nginx --no-self-upgrade --deploy-hook "systemctl restart nginx"
Saving debug log to /var/log/letsencrypt/letsencrypt.log

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing /etc/letsencrypt/renewal/web-tools.yuulinux.tokyo.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Renewing an existing certificate for web-tools.yuulinux.tokyo
Reloading nginx server after certificate renewal

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing /etc/letsencrypt/renewal/www.lpb-studio.com.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Renewing an existing certificate for www.lpb-studio.com and lpb-studio.com
Reloading nginx server after certificate renewal

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Processing /etc/letsencrypt/renewal/yuulinux.tokyo.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Renewing an existing certificate for yuulinux.tokyo and www.yuulinux.tokyo
Reloading nginx server after certificate renewal

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Congratulations, all renewals succeeded:
  /etc/letsencrypt/live/web-tools.yuulinux.tokyo/fullchain.pem (success)
  /etc/letsencrypt/live/www.lpb-studio.com/fullchain.pem (success)
  /etc/letsencrypt/live/yuulinux.tokyo/fullchain.pem (success)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

更新に成功した🐱✨
 

 

Amazonおすすめ

iPad 9世代 2021年最新作

iPad 9世代出たから買い替え。安いぞ!🐱 初めてならiPad。Kindleを外で見るならiPad mini。ほとんどの人には通常のiPadをおすすめします><

コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です

日本語が含まれない投稿は無視されますのでご注意ください。(スパム対策)