Linux下查看80端口是否被占用

方式一:

[plain]  view plain  copy
 
  1. ps -ef |grep 80  


方式二:

[plain]  view plain  copy
 
  1. netstat -anp |grep :80  

方式三:

[plain]  view plain  copy
 
  1. lsof -i:80  

方式四:

[plain]  view plain  copy
 
  1. netstat -tunlp |grep :80  


方式五:

[plain]  view plain  copy
 
  1. netstat -an |grep :80  



猜你喜欢

转载自www.cnblogs.com/kenshinobiy/p/9118004.html