linux kill pid

首先用 netstat -lntp 2显示进程

然后在 kill xx_pid

制作一个命令行的快捷命令,如需制作在终端下启动eclipse

在/(Home:用户家目录)root/bin下新建一名为eclipse的文件,写入如下内容

#!/bin/bash
/opt/eclipse/eclipse &

保存后,即可在terminal下键入eclipse启动eclipse!

查看系统所有服务的状态:

service --status-all

查看进程:ps

linux:~ # chkconfig --list mysql
mysql                     0:off  1:off  2:on   3:on   4:off  5:on   6:off
linux:~ # /etc/init.d/mysql status
Checking for service MySQL:                                                               running

posted @ 2011-03-07 14:57  nodot  阅读(2615)  评论(0)    收藏  举报