Kill占用端口号进程
查看哪个进程占用了819端口:
case9-sghfofo:/usr/local/cnbj/tomcat-bj/bin # lsof -i:859
查看进程号为24907的进程在哪里:
case9-sghfofo:/usr/local/cnbj/tomcat-bj/bin # ps -ef|grep 24907
此时如果我想杀了进程就在终端输入:
kill -s 9 1827
Kill占用端口号进程
查看哪个进程占用了819端口:
case9-sghfofo:/usr/local/cnbj/tomcat-bj/bin # lsof -i:859
查看进程号为24907的进程在哪里:
case9-sghfofo:/usr/local/cnbj/tomcat-bj/bin # ps -ef|grep 24907
此时如果我想杀了进程就在终端输入:
kill -s 9 1827