Kill multiple processes at once & view processes occupying ports

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

 

Guess you like

Origin blog.csdn.net/weixin_38664232/article/details/108807991