1. Check which processes occupy port 8002:
ss -lntpd|grep :8002
You can see that processes 18379 and 18377 occupy port 8002, and now these two processes need to be killed.
2. Kill multiple processes at the same time
kill -9 pid1 pid2 pid3
ss -lntpd|grep :8002
You can see that processes 18379 and 18377 occupy port 8002, and now these two processes need to be killed.
kill -9 pid1 pid2 pid3