当前位置:网站首页>想杀死某个端口进程,但在服务列表中却找不到,可以之间通过命令行找到这个进程并杀死该进程,减少重启电脑和找到问题根源。
想杀死某个端口进程,但在服务列表中却找不到,可以之间通过命令行找到这个进程并杀死该进程,减少重启电脑和找到问题根源。
2022-07-07 18:17:00 【妈妈我要吃烤地瓜】
一、windows杀死端口进程步骤
1.查看端口进程
netstat -ano | find "端口"2.找到端口进程占用的应用
tasklist | find "进程号(pid)"3.杀死端口进程
taskkill /pid 进程号 -t -f提示:find "进程号" 等同于findstr 进程号;进程号为PID号,详情看下图
二、Linux杀死端口进程步骤
1.linux查找被占用的端口
netstat -tln | grep 端口号netstat -tln 查看端口使用情况,而netstat -tln | grep 端口号 则是只查看端口号的使用情况
2.linux找到端口进程占用的应用
lsof -i:端口号3.linux杀死端口进程
kill -9 PID三、利用管道符联合命令
1.杀掉8080端口的进程
netstat -nlp |grep :8080 |grep -v grep|awk '{print $7}' |awk -F '/' '{print $1}' |xargs kill -92.查询包含tomcat的进程号
ps -ef|grep tomcat|grep -v grep|awk '{print $2}'3.杀掉所有包含‘tomcat’的进程
ps -ef|grep tomcat|grep -v grep|awk '{print $2}' |xargs kill -9边栏推荐
- Splicing and splitting of integer ints
- MRS离线数据分析:通过Flink作业处理OBS数据
- 理财产品要怎么选?新手还什么都不懂
- gorilla官方:golang开websocket client的示例代码
- kubernetes之创建mysql8
- 实战:sqlserver 2008 扩展事件-XML转换为标准的table格式[通俗易懂]
- Open source heavy ware! Chapter 9 the open source project of ylarn causal learning of Yunji datacanvas company will be released soon!
- 机械臂速成小指南(十一):坐标系的标准命名
- Force buckle 989 Integer addition in array form
- 使用高斯Redis实现二级索引
猜你喜欢

Force buckle 2319 Judge whether the matrix is an X matrix
![[philosophy and practice] the way of program design](/img/c8/93f2ac7c5beb95f64b7883ad63c74c.jpg)
[philosophy and practice] the way of program design

大厂经典指针笔试题

一键部署Redis任意版本

The boundary of Bi: what is bi not suitable for? Master data, Martech? How to expand?

机械臂速成小指南(十一):坐标系的标准命名

How to cooperate among multiple threads

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

Open source heavy ware! Chapter 9 the open source project of ylarn causal learning of Yunji datacanvas company will be released soon!

微服务远程Debug,Nocalhost + Rainbond微服务开发第二弹
随机推荐
一. 基础概念
How to implement safety practice in software development stage
sql 常用优化
PHP method of obtaining image information
Network principle (1) - overview of basic principles
毕业季|遗憾而又幸运的毕业季
MIT science and technology review article: AgI hype around Gato and other models may make people ignore the really important issues
TS快速入门-泛型
Prometheus remote_write InfluxDB,unable to parse authentication credentials,authorization failed
数据孤岛是企业数字化转型遇到的第一道险关
Some important knowledge of MySQL
【解决】package ‘xxxx‘ is not in GOROOT
Force buckle 674 Longest continuous increasing sequence
How to test CIS chip?
使用高斯Redis实现二级索引
深度学习模型压缩与加速技术(七):混合方式
基于深度学习的目标检测的更新迭代总结(持续更新ing)
第二十章 使用工作队列管理器(三)
Useful win11 tips
Traversée des procédures stockées Oracle