因為要讓 apache server 改支援 https 的服務
所以在用完 letsencrypt 安裝相關的憑證後,發現 apache 重跑再起不能

查詢 /var/log/syslog 後,找到原因是

(98)Address already in use: AH00072: make_sock: could not bind to address [::]:443
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:443

原本以為是不是有安裝其他 web server 有衝突到(ex: nginx)
後來發現也沒有,因此 google 了一下,找到了 netstat 這個指令,也順勢記錄下來以後備用

netstat -anp | grep :443 | grep LISTEN

跑出來的結果是

tcp6 0 0 :::443 :::* LISTEN 2609/stunnel4

記得要用 root 或是 sudo 來執行
跑完之後,才發現是以前不知道為什麼而裝的 stunnel4 程式佔住了 port 443
砍掉之後再重跑 apache 一切就 OK 啦!

 

文章標籤
全站熱搜
創作者介紹
創作者 ieon 的頭像
ieon

Chu, HuangWei's Blog

ieon 發表在 痞客邦 留言(0) 人氣(2,602)