赞
踩
例子:关闭8082端口
[root@VM_0_17_centos home]# netstat -tln | grep 8082
tcp6 3 0 :::8082 :::* LISTEN
[root@VM_0_17_centos home]# sudo lsof -i:8082
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
java 5873 root 15u IPv6 7341566 0t0 TCP *:us-cli (LISTEN)
[root@VM_0_17_centos home]# sudo kill -9 5873
[1]+ 已杀死 java -jar democ-0.0.1-SNAPSHOT.jar
原文链接:https://blog.csdn.net/anguowei/article/details/119933332
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。