查看端口情况

查看本机占用情况

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
发布了20 篇原创文章 · 获赞 1 · 访问量 3972

猜你喜欢

转载自blog.csdn.net/haxyek/article/details/86301509