各個系統查看端口情況的方法

查看本機佔用情況

windows

windows常用命令netstat,與find組合使用

netsat -an | find "8080"

mac

lsof -i 8090

linux

netstat -anptl | grep 8080

查看遠程端口是否開啓

nc

nc -v -n 127.0.0.1 22

wget

 wget 192.168.1.1:6379

curl

curl 192.168.1.1:6379
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章