1、查看端口的进程,以9023为例
(1)方法1
netstat -tunpl|grep 9023

(2)方法2
ss -tulpan |grep 9023

(3)方法3
netstat -ntlp |grep 9023

(4)方法4
lsof -i:9023

(5)方法5
netstat -apn | grep 9023

(6)方法6
netstat -ano | findstr "9023"
查看所有的端口占用情况
命令:netstat -ano
因为linux可能没安装一些工具包,所以上面方法哪个能执行成功就用哪个。
2、杀死进程
kill -9 进程id








![数据保护从现在开始:如何抵御 .[RestoreBackup@cock.li].SRC 勒索病毒](https://i-blog.csdnimg.cn/direct/9b9d1a0d2df74fcb918e00b325f30b9a.png)









