[[email protected] ok]# lsof -ntP -i:22 3119 [[email protected] ok]# netstat -lnutp|grep 22 tcp 0 0 192.168.122.1:53 0.0.0.0:* LISTEN 3299/dnsmasq tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 3119/sshd tcp 0 0 :::22 :::* LISTEN 3119/sshd
[[email protected] ok]# netstat -lnutp|grep 22 tcp 0 0 192.168.122.1:53 0.0.0.0:* LISTEN 3299/dnsmasq tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 8904/sshd tcp 0 0 :::22 :::* LISTEN 8904/sshd udp 0 0 192.168.122.1:53 0.0.0.0:* 3299/dnsmasq [[email protected] ok]# lsof -ntP -i:22|xargs kill -9 [[email protected] ok]# netstat -lnutp|grep 22 tcp 0 0 192.168.122.1:53 0.0.0.0:* LISTEN 3299/dnsmasq udp 0 0 192.168.122.1:53 0.0.0.0:* 3299/dnsmasq
时间: 2024-10-13 19:58:56