进程查看的一些常用操作
ss -antupl | grep 7003查到相关进程号,如进程号为83235
ps aux |grep 83235
通过iptables查看本机的某个端口是否开放:
[root@zwygjjapp09 Middleware]# iptables-save | grep 8001
-A IN_public_allow -p tcp -m tcp --dport 8001 -m conntrack --ctstate NEW -j ACCEPT
systemctl list-units |grep ceph
说明:
列出所有service类型的unit
systemctl list-units --type=service --all
systemctl 列出所有的系统服务
systemctl list-units 列出所有启动unit
systemctl list-unit-files 列出所有启动文件
systemctl list-units –type=service –all 列出所有service类型的unit
systemctl list-units –type=service –all grep cpu 列出 cpu电源管理机制的服务
systemctl list-units –type=target –all 列出所有target
systemctl list-dependencies #查看当前运行级别target(mult-user)启动了哪些服务
常用命令:
grep -rn ./

浙公网安备 33010602011771号