当前位置:网站首页>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边栏推荐
- MIT科技评论文章:围绕Gato等模型的AGI炒作可能使人们忽视真正重要的问题
- TS快速入门-泛型
- The boundary of Bi: what is bi not suitable for? Master data, Martech? How to expand?
- 基于深度学习的目标检测的更新迭代总结(持续更新ing)
- Equals method
- 力扣 989. 数组形式的整数加法
- 【奖励公示】第22期 2022年6月奖励名单公示:社区明星评选 | 新人奖 | 博客同步 | 推荐奖
- One click deployment of any version of redis
- JNI 初级接触
- Dachang classic pointer written test questions
猜你喜欢
随机推荐
Micro service remote debug, nocalhost + rainbow micro service development second bullet
Force buckle 599 Minimum index sum of two lists
CJSON内存泄漏的注意事项
力扣 1232.缀点成线
Micro service remote debug, nocalhost + rainbow micro service development second bullet
力扣 459. 重复的子字符串
【解决】package ‘xxxx‘ is not in GOROOT
基于深度学习的目标检测的更新迭代总结(持续更新ing)
MRS离线数据分析:通过Flink作业处理OBS数据
TS快速入门-泛型
怎样用Google APIs和Google的应用系统进行集成(1)—-Google APIs简介
Useful win11 tips
ERROR: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your
ASP.NET学习& asp‘s one word
《数字图像处理原理与实践(MATLAB版)》一书之代码Part2[通俗易懂]
Dachang classic pointer written test questions
Cloud component development and upgrading
Equals method
【解决】package ‘xxxx‘ is not in GOROOT
Force buckle 1232 Dotted line








