![](/img/trans.png)
[英]Apache cannot bind :443 address for SSL even though port 443 is unused
[英]Apache can't start “could not bind to address [::]:443” though no process is using it, and netcat can openit
我的apache版本
Server version: Apache/2.4.6 (CentOS)
Server built: Apr 20 2018 18:10:38
當我運行命令lsof -i :443
它什么也不返回
但是,如果我嘗試運行apache(直接通過運行httpd
出現錯誤,我就通過ps aux
驗證了以前沒有運行過httpd / apache進程)
(98)Address already in use: AH00072: make_sock: could not bind to address [::]:443
但是,如果我嘗試在443 nc 0.0.0.0 -l 443
上運行netcat
進程,則它確實會打開並且我可以發送數據
我對可能是什么問題有點迷茫?
找到了
在Apache的不同配置文件中,兩次Listen 443
次
遺憾的是,apache沒有更明確的錯誤/警告消息(例如,“選項定義了兩次”等)
似乎另一個進程正在使用服務器上的端口443。
netstat -anp | grep 443
輸出將是
tcp 0 0 0.0.0.0:443 0.0.0.0:*聽
禁用端口443並啟動
systemctl start httpd.service
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.