进程管理

时间:2021-03-01 14:17:23   收藏:0   阅读:0
1.定时任务      crontab -e s m h d month w cmd
2.任务后台执行  command & 
3.查看进程      ps -ef|grep prcss
4.杀死进程      kill -9 pid
5.服务状态      service prcss_name status|start|stop|restart 
6.任务关闭终端仍运行  nohup cmd >out.o 2>err.o &   
7.查看进程pid内存占有  cat /proc/pid/status
评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!