Linux 常用命令 Bennycao 2022-06-27 39 阅读1分钟 查看服务运行数量 ps -ef | grep xxx| grep -v grep| wc -l xxx -> nacos nginx redis 等等 查看端口号与关闭 查看端口走对应的 PID netstart -anp | grep 端口号 lsof -i:端口号 关闭 PID kill -9 pid 查看本机所有的 Java 服务 jps -l