码迷,mamicode.com
首页 > 系统相关 > 详细

查看linux中某个端口是否被占用

时间:2016-03-07 10:29:40      阅读:152      评论:0      收藏:0      [点我收藏+]

标签:

1.netstat -tunlp | grep ****  

 -t--tcp  -u--udp -l--listening -n --numeric -p--program -a--all

2.lsof -i :port 

list open file  -i  This option selects the listing of files any of whose Internet address matches the address specified in i.

 

查看linux中某个端口是否被占用

标签:

原文地址:http://www.cnblogs.com/beautifulfish/p/5249511.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!