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  



posted @ 2018-05-31 17:44  谦信君  阅读(14332)  评论(0编辑  收藏  举报