关闭指定端口,8081

关闭8081

lsof -i:8081

显示

COMMAND   PID      USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME
node    57811 guoliwang   28u  IPv4 0x1b57bd152311bccf      0t0  TCP *:sunproxyadmin (LISTEN)

kill PID

kill -9 57811

你可能感兴趣的:(关闭指定端口,8081)