ip、端口 連接失敗問題常見原因

一:防火墻沒關

liunx 7:

????1、暫時: ? ? ? ?

????????????開啟: service iptables start

????????????關閉: service iptables stop

? ?? 2、永久:

? ? ? ? ? ? 開啟: chkconfig iptables on

? ? ? ? ? ? 關閉: chkconfig iptables off

linux 6.8:

????????????# vi /etc/selinux/config

????????????//設置SELINUX=disabled

????????????# systemctl stop firewalld? 臨時關閉防火墻

????????????# systemctl disable firewalld 停止并禁用開機啟動

????????

二:端口被占用

? ? ? ? win+R -----> cmd?

? ? ? ? 查看全部端口: netstat -ano

? ? ? ? 查看指定端口:netstat -ano | findstr 端口號

? ? ? ?? 結束進程:tasklist | findstr 端口號

? ? ? ? ? 結果是:svchost.exe

三:端口不符合公司安全要求,被封

? ? 沒辦法,打電話問問

最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。

推薦閱讀更多精彩內容