how to check which process occupied the port
来源:互联网 发布:淘宝怎么买电话轰炸 编辑:程序博客网 时间:2024/04/30 21:06
从网上找来的,灰常好用:
1. netstat -Aan|grep <portnumber>
找到该端口连接对应的PCB/ADDR和连接的协议类型。注:PCB ----Protocol Control Block
2. 如果是tcp连接,则rmsock <PCB/ADDR> tcpcb
如果是udp连接,则rmsock <PCB/ADDR> inpcb
#netstat -Aan|grep 23
f1000200019ce398 tcp 0 0 *.23 *.* LISTEN
#rmsock f1000200019ce398 tcpcb
The socket 0x19ce008 is being held by proccess 185006 (inetd).
注意:rmsock命令需要root权限执行
0 0
- how to check which process occupied the port
- How to know the port which process is using
- how to check port number and kill process with the port number
- how to check raw socket belong to which process on linux.
- How to check the service account under which the service running
- How to check which responsiblity we are using
- how to check busybox need which shared lib
- how to change the port of tomcat
- How to kill a process on a port on ubuntu
- How to process the Properties file!
- how to let the process kill itself?
- linux check process and port relation
- How to check which certificate was used to sign my app
- How to find the file which contain a specified string
- How to check port number is open for a windows server
- about to search or kill the process and the port in the linux
- How to check srvconfig.
- How to check the MSOLAP Provider used in connection string
- tomcat使用memcached完成集群(session共享实现方式)
- Kruskal&&prim
- Bind dlz 测试手记
- 大唐天启元年
- 技术负责人的三种角色
- how to check which process occupied the port
- Sanliency detection ---my reading
- MYSQL 语句优化
- Android 高仿百度地图的LBS服务——基础地图篇(v 3.1.1)
- android 事件分发机制
- HINSTANCE HANDLE HWND 的区别及一般方法
- 谈一谈Cocos2d-x中的某些“大小”
- [转]几种图像处理类库的比较
- 代码才是最好的注释