查看程序对应的进程号:
ps -ef | grep 进程名字
查看端口号所占用的进程:
netstat -nltp | grep 端口
或者
netstat -anp | grep 端口
杀死进程
kill pid
ps -ef | grep 进程名字
netstat -nltp | grep 端口
或者
netstat -anp | grep 端口
kill pid
相关文章: