![](/img/trans.png)
[英]Server listening to localhost:8080 can Apache still listen to port 80?
[英]Apache 2 Can't listen on port 80 with my server [on hold]
我正在嘗試運行:netstat -tulpn | grep LISTEN
它給了我這個:
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1487/sshd
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 1501/mysqld
tcp6 0 0 :::22 :::* LISTEN 1487/sshd
不幸的是,端口80在此列表中不可見。 我不知道為什么,我正在使用Droplates和Ubuntu Web服務器。
當我嘗試運行時:telnet 80
我遇到了這個問題:正在嘗試... telnet:無法連接到遠程主機:連接被拒絕
我被卡住了,我的網站無法正常工作,請任何人幫助我。
謝謝。
首先嘗試netstat -tunlp | grep“:80”。 如果看不到httpd / apache,則應檢查計算機日志中是否有錯誤。 嘗試使用systemctl status httpd或systemctl status apache2,以查看服務的狀態。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.