centos7 常用查找程序和端口命令

netstat -lntp #查看监听(Listen)的端口

netstat -antp ?#查看所有建立的TCP连接

netstat -tulpn #查看所有运行中的服务的详细信息

ps -ef ? ? ?? #显示所有进程
ps -ef|grep tcp-proxy-0.0.1-SNAPSHOT.jar|grep -v gre
ps -e -o 'pid,comm,args,pcpu,rsz,vsz,stime,user,uid' | grep java | sort -nrk5

ps -aux ? ?  ?#显示使用内存的进程

top ? ? ? ? ??查看内存使用说明 (shift+m 按照排名)

你可能感兴趣的:(centos)