如何查看端口被哪个进程占用着?
时间:2005-05-30
来源:互联网
- netstat -an | grep 18000
知道这个端口被某个程序使用着,但是查不出来是个什么程序,有没有什么命令可以查看是哪个程序占用着它?
作者: AllenYao 发布时间: 2005-05-30
如果别占用 了,则输出占用这个断口的进程
作者: qinyun.it.epri 发布时间: 2005-05-30
作者: sunbeat 发布时间: 2005-06-02
netstat -Aan | grep 389
this will return:
f1000089c27a2358 tcp4 0 0 *.389 *.* LIST EN
The next step is to take this value that was generated, f1000089c27a2358 and run it against the rmsock command:
rmsock f100089c27a2358 tcpcp
this command will return the process that is holding the socket.
The socket 0xc27a2000 is being held by process 204914 (ndsd).
In this case, Novel Directory Server was already installed on this system and was using port 389.
作者: microyong 发布时间: 2006-02-07
it is tcpcb
rmsock f100089c27a2358 tcpcb
作者: chinadns 发布时间: 2006-02-13
作者: wobuzhidao 发布时间: 2006-02-22
not tcpcp
it is tcpcb
rmsock f100089c27a2358 tcpcb
正解。。。
作者: Jens 发布时间: 2006-02-22
# killall -9 httpd ( -9表示强行杀死进程,这样会产生很多垃圾的 )
# /etc/init.d/apache start 重启 apache 就行了。
参考: killall 命令。http://www.ifpubs.com/books/aix52/killall.htm
作者: phantast 发布时间: 2008-01-15
原因,本人配置Lotus Domino IE端连接不上http服务。怀疑80端口呗占用。
#netstat -Aan|grep 80
f100060000bb5398 tcp4 0 0 *.80 *.* listen
......
#rmsock f100060000bb5398 tcpcb
The socket 0xbb5008 is being held by proccess 69950 <http>.
作者: 啸cxcn 发布时间: 2011-03-21
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28