mac linux netstat -n
一直都不明白为什么mac就是不现实8080端口,现在明白了
USERtekiiMac-3:~ user$ netstat -an | grep tcp46 tcp46 0 0 *.8009 *.* LISTEN tcp46 0 0 *.8080 *.* LISTEN tcp46 0 0 *.8888 *.* LISTEN tcp46 0 0 *.49162 *.* LISTEN USERtekiiMac-3:~ user$ netstat -a | grep tcp46 tcp46 0 0 *.8009 *.* LISTEN tcp46 0 0 *.http-alt *.* LISTEN tcp46 0 0 *.ddi-tcp-1 *.* LISTEN tcp46 0 0 *.49162 *.* LISTEN
可以知道:
tcp46 0 0 *.8080 *.* LISTEN tcp46 0 0 *.http-alt *.* LISTEN