文章插圖

文章插圖
Linux系統測試端口連通性的方法
有四種常用方法:1. telnet 方法2. wget 方法3. ssh 方法4. curl 方法
下面一一介紹 。
1. telnet用法: telnet ip port(1)連接不存在的端口telnet 1.1.1.1 8Trying 1.1.1.1…telnet: connect to address 1.1.1.1: Connection timed out(2)連接存在的端口telnet 1.1.1.1 8000Trying 1.1.1.1…Connected to 1.1.1.1.Escape character is ‘^]’.Connection closed by foreign host.
2. wget用法: wget ip:port(1)連接不存在的端口wget 1.1.1.1:8–2017-01-24 11:38:34– http://1.1.1.1:8/ Connecting to 1.1.1.1:8…failed: Connection timed out. Retrying.
(2)連接存在的端口wget 1.1.1.1:8000–2017-01-24 11:39:03– http://1.1.1.1:8000/Connecting to 1.1.1.1:8000… connected.HTTP request sent, awaiting response… 200 OK
3. ssh用法: ssh -v -p port [email protected] 調試模式(會打印日志)-p 指定端口這里沒有給出測試,留給讀者自己測試 。
【測試ip端口通不通 安卓app 測試ip端口通不通的腳本】4. curl用法: curl ip:port(1)連接不存在的端口沒有結果 。(2)連接存在的端口curl 1.1.1.1:8000<!DOCTYPE html><html><head>xxx</head><body>……</body></html>
- 防火墻端口怎么開放 防火墻怎么開啟端口
- linux查看防火墻是否開啟某端口 Linux如何查看防火墻是否開啟
- 加密是啥意思 通信加密有哪些方式
- 網絡測試工具有哪些 網絡設備檢測工具
- 5g光模塊是干什么用的 光模塊是干什么用的 通俗易懂
- jmeter性能測試分析 jmeter性能測試實驗報告
- linux系統開端口命令 linux開放端口
- 如何打開1433端口的解決方法 如何打開電腦1433端口
- js獲取文件的絕對路徑 js通過路徑讀取本地文件
- 黑盒測試工作怎么樣 黑盒測試工作內容
