根据关键词获取进程ID然后杀掉进程
来源:互联网 发布:淘宝客赚佣金新手教程 编辑:程序博客网 时间:2024/06/05 18:29
例如需要杀掉监听进程,如下:
[oracle@kel ~]$ ps -ef|grep lsnroracle 4973 1 1 19:40 ? 00:00:00 /home/oracle/product/10.2.0/db_1/bin/tnslsnr LISTENER -inheritoracle 4977 4868 0 19:40 pts/0 00:00:00 grep lsnr
使用下面的即可:
[oracle@kel ~]$ ps -ef|grep lsnr|grep -v greporacle 4973 1 0 19:40 ? 00:00:00 /home/oracle/product/10.2.0/db_1/bin/tnslsnr LISTENER -inherit[oracle@kel ~]$ ps -ef|grep lsnr|grep -v grep|cut -c 9-15 4973 [oracle@kel ~]$ ps -ef|grep lsnr|grep -v grep|cut -c 9-15 |xargs kill -9
进程杀掉:
[oracle@kel ~]$ ps -ef|grep lsnroracle 5071 4868 0 19:43 pts/0 00:00:00 grep lsnr
主要命令如下:lsnr是关键词
[oracle@kel ~]$ ps -ef|grep lsnr|grep -v grep|cut -c 9-15 |xargs kill -9
0 0
- 根据关键词获取进程ID然后杀掉进程
- 批处理 根据端口号查询pid 然后杀掉进程
- delphi根据进程ID获取进程路径
- linux根据进程名字获取进程ID
- 根据进程ID获取进程名字
- 根据进程名获取进程id
- 根据进程名获取进程id,并杀进程
- 根据指定端口杀掉进程
- 根据端口号杀掉进程
- 根据进程ID获取经常名字 和 根据进程名字获取进程ID
- linux根据进程名称杀掉进程
- 根据窗口ID获取进程PID
- 根据进程ID获取exe路径
- 根据窗口句柄来获取进程ID
- 根据进程id获取主窗口句柄
- linux 根据进程ID获取对应进程的信息
- 根据进程ID获取进程名的方式
- 根据进程ID杀死进程
- 调整Ubantu WorkSpace
- 使用 MVVMLight 命令绑定
- windows Ntlm's setting for Request.
- cocos2d-js-v3.0-rc0 下 pomelo-cocos2d-jsb native web 配置
- Linux 下挂载硬盘的 方法
- 根据关键词获取进程ID然后杀掉进程
- WPF 在事件中绑定命令
- Xenomai 的发展路线
- hdu 1083
- eclipse 中的注释 快捷键
- LeetCode——Binary Tree Level Order Traversal
- 发布到Tomcat丢失依赖jar包的问题
- 怎么学习ABAP快?
- 在github上创建新分支