[root@localhost bin]# sudo netstat -anp | grep 2181
tcp6 0 0 :::2181 :::* LISTEN 2679/java
[root@localhost bin]# ps -aux | grep 2181
root 7193 0.0 0.0 112808 960 pts/0 S+ 09:23 0:00 grep --color=auto 2181
[root@localhost bin]# kill 7193
-bash: kill: (7193) - No such process
[root@localhost bin]# kill 112808
-bash: kill: (112808) - No such process
[root@localhost bin]# kill -9 7193
-bash: kill: (7193) - No such process
[root@localhost bin]# ps -aux | grep 2181
root 7498 0.0 0.0 112808 960 pts/0 R+ 09:24 0:00 grep --color=auto 2181
[root@localhost bin]# kill -9 7498
-bash: kill: (7498) - No such process
[root@localhost bin]# ps -aux | grep 2181
root 7596 0.0 0.0 112808 964 pts/0 R+ 09:24 0:00 grep --color=auto 2181
[root@localhost bin]#
【相关推荐】