linux 命令例子

1、根据端口kill进程(端口:81)

 lsof -i:81|awk '{print $2}'|tail -n 1|xargs kill

或者

kill $(lsof -i:81|awk '{print $2}'|tail -n 1)

猜你喜欢

转载自blog.csdn.net/qq_30436011/article/details/120079280