30, how to kill the process


Tips, only services provide external access to the port number, local service no port;

[root@backup nfsbackup]# lsof -i :873

COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAMEoot 3u IPv4 10778 0t0 TCP *:rsync (LISTEN)

rsync 1297 r

rsync 1297 root 5u IPv6 10779 0t0 TCP *:rsync (LISTEN)

Pkill + service name (that is, command name, such as rsync, rpcbind, usually has a service port number)

kill -9 + pid name (service of process)

Check the port number according to the service

netstat -tunlp | grep "rpcbind"

According to port numbers to view the service

lsof -i :111

netstat -tunlp | grep "rpcbind"

Guess you like

Origin www.cnblogs.com/LiuChang-blog/p/12313564.html