linux进程管理相关命令

ps 

ps aux
ps -ef | grep -E "supervisor|PPID" 

top

可以按一定规则对top的结果进行排序

# 监控单一进程
top -p pid 

kill

#默认15,常用9
kill -9 process_id
killall process_name

netstat

-t, --tcp
-u, --udp
-l, --listening
Show only listening sockets.

-n
Show numerical addresses instead of trying to determine symbolic host, port or user names.
-p
Show the PID and name of the program to which each socket belongs.
-e, --extend
Display additional information. Use this option twice for maximum detail.

jobs

# 显示后台进程
jobs -l

参考文档:

http://man.linuxde.net/netstat

netstat 的10个基本用法

转载于:https://www.cnblogs.com/gattaca/p/4515500.html

猜你喜欢

转载自blog.csdn.net/weixin_33907511/article/details/93401744
今日推荐