avatar
g*y
1
one socket port was occupied by a program
but I don't know which one
How can I find this program out and killed it?
I have known pfile /proc/* can do this,
but I want a more simple method.
avatar
j*y
2
fuser port/protocol

【在 g*****y 的大作中提到】
: one socket port was occupied by a program
: but I don't know which one
: How can I find this program out and killed it?
: I have known pfile /proc/* can do this,
: but I want a more simple method.

avatar
m*e
3
lsof -i tcp:_port
you have to be root

【在 g*****y 的大作中提到】
: one socket port was occupied by a program
: but I don't know which one
: How can I find this program out and killed it?
: I have known pfile /proc/* can do this,
: but I want a more simple method.

avatar
m*m
4
You may want to try 'netstat'. It shows related data
structures of all sockets.

【在 g*****y 的大作中提到】
: one socket port was occupied by a program
: but I don't know which one
: How can I find this program out and killed it?
: I have known pfile /proc/* can do this,
: but I want a more simple method.

avatar
g*y
5
If someone connect to this program,
it works, but the fact is always not this
It just listen and no one connect to it.

【在 m*******m 的大作中提到】
: You may want to try 'netstat'. It shows related data
: structures of all sockets.

avatar
g*y
6
don't work, fuser need a file name

【在 j***y 的大作中提到】
: fuser port/protocol
avatar
g*y
7
where is this command locate?
I can not find it.

【在 m*****e 的大作中提到】
: lsof -i tcp:_port
: you have to be root

avatar
D*N
8
netstat -a shows all ports that are listening
only the first few ports are tcp and udp ports so use netstat -a |more
if it's a standard unix service you can try more /etc/services |grep urport#
lsof might not be in the defualt path and installation
still try /usr/sbin/lsof

【在 g*****y 的大作中提到】
: If someone connect to this program,
: it works, but the fact is always not this
: It just listen and no one connect to it.

avatar
j*y
9
it's platform dependent, on some platforms, it only support files,
while on others, it supports both file and socket.

【在 g*****y 的大作中提到】
: don't work, fuser need a file name
avatar
g*y
10
though netstat tell me some program is listenning on the port
I still don't know whick program it is.
and I can not find lsof in any common bin directory.
Is it a freeware?

【在 D****N 的大作中提到】
: netstat -a shows all ports that are listening
: only the first few ports are tcp and udp ports so use netstat -a |more
: if it's a standard unix service you can try more /etc/services |grep urport#
: lsof might not be in the defualt path and installation
: still try /usr/sbin/lsof

avatar
D*N
11
Quick fix:
netstat -lepv |more
last colume: PID/Program Name is what you want..

【在 g*****y 的大作中提到】
: though netstat tell me some program is listenning on the port
: I still don't know whick program it is.
: and I can not find lsof in any common bin directory.
: Is it a freeware?

avatar
g*y
12
I use Solaris 8 ,These options can not work.

【在 D****N 的大作中提到】
: Quick fix:
: netstat -lepv |more
: last colume: PID/Program Name is what you want..

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。