有时在ubuntu下使用pycharm突然卡了,因此需要强制关闭pycharm
步骤如下:
step1: 用下面的语句打印查看所有当前正在运行的进程:
ps -ef
可以看到如下列表:
表中绿框部分是每个进程的编号,红色方框是找到的关于pycharm的进程,主要根据路径信息寻找。
step2: 根据上面找到的pycharm相关的进程,杀死这些进程,如下
kill -s 9 29368 kill -s 9 29426 kill -s 9 29479 kill -s 9 29619
其中kill命令的参数 “-s 9 ” 表示强制、尽快终止进程。其他各个终止信号及其作用见附录
Signal Description Signal number on Linux x86[1]
SIGABRT Process aborted 6
SIGALRM Signal raised by alarm 14
SIGBUS Bus error: "access to undefined portion of memory object" 7
SIGCHLD Child process terminated, stopped (or continued*) 17
SIGCONT Continue if stopped 18
SIGFPE Floating point exception: "erroneous arithmetic operation" 8
SIGHUP Hangup 1
SIGILL Illegal instruction 4
SIGINT Interrupt 2
SIGKILL Kill (terminate immediately) 9
SIGPIPE Write to pipe with no one reading 13
SIGQUIT Quit and dump core 3
SIGSEGV Segmentation violation 11
SIGSTOP Stop executing temporarily 19
SIGTERM Termination (request to terminate) 15
SIGTSTP Terminal stop signal 20
SIGTTIN Background process attempting to read from tty ("in") 21
SIGTTOU Background process attempting to write to tty ("out") 22
SIGUSR1 User-defined 1 10
SIGUSR2 User-defined 2 12
SIGPOLL Pollable event 29
SIGPROF Profiling timer expired 27
SIGSYS Bad syscall 31
SIGTRAP Trace/breakpoint trap 5
SIGURG Urgent data available on socket 23
SIGVTALRM Signal raised by timer counting virtual time: "virtual timer expired" 26
SIGXCPU CPU time limit exceeded 24
SIGXFSZ File size limit exceeded 25
————————————————
版权声明:本文为CSDN博主「wzg2016」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/Strive_For_Future/article/details/108006977