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