ps -ef 可看到所有进程的PID getpid()可获取进程的pid号,参考:https://blog.csdn.net/u010743406/article/details/104238987 杀死进程:kill -9 进程号