当前位置:网站首页>You want to kill a port process, but you can't find it in the service list. You can find this process and kill it through the command line to reduce restarting the computer and find the root cause of
You want to kill a port process, but you can't find it in the service list. You can find this process and kill it through the command line to reduce restarting the computer and find the root cause of
2022-07-07 20:21:00 【Mom, I want to eat roasted sweet potato】
One 、windows Kill port process steps
1. View port processes
netstat -ano | find " port "2. Find the application occupied by the port process
tasklist | find " Process number (pid)"3. Kill port process
taskkill /pid Process number -t -fTips :find " Process number " Equate to findstr Process number ; The process number is PID Number , See the figure below for details
Two 、Linux Kill port process steps
1.linux Find occupied ports
netstat -tln | grep Port number netstat -tln View port usage , and netstat -tln | grep Port number Only check the usage of the port number
2.linux Find the application occupied by the port process
lsof -i: Port number 3.linux Kill port process
kill -9 PID3、 ... and 、 Combine commands with pipe symbols
1. kill 8080 Port process
netstat -nlp |grep :8080 |grep -v grep|awk '{print $7}' |awk -F '/' '{print $1}' |xargs kill -92. The query contains tomcat The process number of
ps -ef|grep tomcat|grep -v grep|awk '{print $2}'3. Kill all that contain ‘tomcat’ The process of
ps -ef|grep tomcat|grep -v grep|awk '{print $2}' |xargs kill -9边栏推荐
- 解决/bin/sh进去的容器运行可执行文件报not found的问题
- Opencv learning notes high dynamic range (HDR) imaging
- Update iteration summary of target detection based on deep learning (continuous update ing)
- Spark 判断DF为空
- Meta Force原力元宇宙系统开发佛萨奇模式
- 图扑数字孪生煤矿开采系统,打造采煤“硬实力”
- 目前股票开户安全吗?可以直接网上开户吗。
- JVM class loading mechanism
- vulnhub之Funfox2
- Splicing and splitting of integer ints
猜你喜欢

One click deployment of any version of redis

Opencv learning notes high dynamic range (HDR) imaging

力扣 2319. 判断矩阵是否是一个 X 矩阵

微服务远程Debug,Nocalhost + Rainbond微服务开发第二弹

Vulnhub tre1

AIRIOT助力城市管廊工程,智慧物联守护城市生命线

网络原理(1)——基础原理概述

Some important knowledge of MySQL

Chapter 9 Yunji datacanvas company won the highest honor of the "fifth digital finance innovation competition"!

不落人后!简单好用的低代码开发,快速搭建智慧管理信息系统
随机推荐
BI的边界:BI不适合做什么?主数据、MarTech?该如何扩展?
Kubernetes -- detailed usage of kubectl command line tool
vulnhub之tre1
Vulnhub tre1
有用的win11小技巧
力扣 1961. 检查字符串是否为数组前缀
浅尝不辄止系列之试试腾讯云的TUIRoom(晚上有约,未完待续...)
Micro service remote debug, nocalhost + rainbow micro service development second bullet
With st7008, the Bluetooth test is completely grasped
使用 BR 备份 TiDB 集群数据到 Azure Blob Storage
Force buckle 2315 Statistical asterisk
Phoenix JDBC
Apifox 接口一体化管理新神器
Implement secondary index with Gaussian redis
Useful win11 tips
大厂经典指针笔试题
毕业季|遗憾而又幸运的毕业季
CIS芯片测试到底怎么测?
力扣 459. 重复的子字符串
搞定带WebKitFormBoundary post登录