摘要:
下文讲述linux操作系统中查询和关闭进程的方法分享,如下所示;
实现思路: 1.查询进程 ps -ef|grep 进程名称 2.关闭进程 kill [参数][进程号]
例:
Linux查询nginx进程并关闭示例分享
[root@******** ~]# ps -ef|grep nginx root 20555 20537 0 21:57 pts/1 00:00:00 grep nginx root 20691 1 0 Oct13 ? 00:00:00 nginx: master process ./nginx nobody 20692 20691 0 Oct13 ? 00:05:05 nginx: worker process [root@******** ~]# kill 20691;