netstat未找到命令
yum install net-tools -y
查看某端口占用的pid
netstat -nlp |grep :8000
根据jar查看pid
ps -ef|grep XXX.jar 或者 ps-aux |grep java
关闭进程
kull -s 9 pid
centos7防火墙查看
systemctl status firewalld.service
关闭防火墙
systemctl stop firewalld.service
本文介绍了在Linux系统中如何使用net-tools进行端口检查,通过netstat命令查找占用特定端口的PID,以及利用ps命令定位到具体进程。还讲述了如何关闭指定进程,如使用kill命令。对于CentOS7,讲解了防火墙的状态查看与关闭方法,包括systemctl来管理firewalld服务。
netstat未找到命令
yum install net-tools -y
查看某端口占用的pid
netstat -nlp |grep :8000
根据jar查看pid
ps -ef|grep XXX.jar 或者 ps-aux |grep java
关闭进程
kull -s 9 pid
centos7防火墙查看
systemctl status firewalld.service
关闭防火墙
systemctl stop firewalld.service
624
1万+

被折叠的 条评论
为什么被折叠?