不用 80 埠更新 SSL 證書

2021-09-28 11:55:08 字數 1012 閱讀 7031

更新 ssl 證書時出現如下問題:

...原因:

更新 ssl 證書時需占用 80 埠,但該埠已經被 nginx 占用了。

解決方式 1(只解決一次):

$ yum install python-certbot-nginx -y

$ certbot renew --nginx

解決方式 2(一勞永逸):

$ yum install python-certbot-nginx -y

$ sed -i "s/renew/renew --nginx/g" /usr/lib/systemd/system/certbot-renew.service

$ systemctl daemon-reload

$ systemctl start certbot-renew.service

參考

80埠占用問題

我們在安裝使用phpstudy的過程中經常會遇到80埠被占用的情況,導致phpstudy的apache服務無法啟動 apache後邊顯示紅色方框,綠色圓點表示啟動 第一步 我們可以通過 其他選單選項 埠常規設定 httpd埠 的值改為8080或者90等埠。改好後重啟phpstudy,正常情況下這就可...

80埠被占用

原文出處 80埠被system占用的問題 今天啟動apache的時候發現無法啟動80埠被占用。1.netstat命令 1 執行 中輸入cmd 2 在命令列中輸入netstat ano,得到埠號對應的pid 3 開啟任務管理器,點選 檢視 選單,選擇 選擇列 給程序列表中新增 pid 列,然後找到pi...

443埠和80埠的區別?

這兩個埠最大的區別就在於服務不同。埠 80 服務 http 說明 用於網頁瀏覽。木馬executor開放此埠 埠 443 服務 https 說明 網頁瀏覽埠,能提供加密和通過安全埠傳輸的另一種http。https secure hypertext transfer protocol 安全超文字傳輸協...