supervisorctl 進(jìn)程管理
1.查看所有子進(jìn)程的狀態(tài)
[root@wghpt_tomcat2031_8006 ~]# supervisorctl status
dfs? ? ? ? ? ? ? ? ? ? ? ? ? ? ? RUNNING? pid 56001, uptime 151 days, 0:26:28
sshd? ? ? ? ? ? ? ? ? ? ? ? ? ? RUNNING? pid 8, uptime 207 days, 0:04:20
tomcat? ? ? ? ? ? ? ? ? ? ? ? ? RUNNING? pid 125004, uptime 14:35:38
第一列是服務(wù)名搞坝;
第二列是運(yùn)行狀態(tài)侵歇,RUNNING表示運(yùn)行中蛹尝,F(xiàn)ATAL 表示運(yùn)行失敗叹侄,STARTING表示正在啟動(dòng),STOPED表示任務(wù)已停止渺尘;
第三/四列是進(jìn)程號(hào),最后是任務(wù)已經(jīng)運(yùn)行的時(shí)間。
2.查看單個(gè)任務(wù)狀態(tài): supervisorctl status 服務(wù)名
[root@wghpt_tomcat2031_8006 ~]# supervisorctl status dfs
dfs? ? ? ? ? ? ? ? ? ? ? ? ? ? ? RUNNING? pid 56001, uptime 151 days, 0:28:15
3.關(guān)閉任務(wù):supervisorctl stop 服務(wù)名
supervisorctl stop dfs
supervisorctl stop all? ? ? ? ? ? 關(guān)閉所有進(jìn)程
supervisorctl stop tomcat? 關(guān)閉tomcat
4.啟動(dòng)任務(wù):supervisorctl start 服務(wù)名
supervisorctl start dfs
supervisorctl start all? ? ? 啟動(dòng)所有進(jìn)程
supervisorctl start tomcat 啟動(dòng)tomcat
5.重啟任務(wù):supervisorctl restart 服務(wù)名
supervisorctl restart dsf
————————————————
版權(quán)聲明:本文為CSDN博主「惟肖肖肖」的原創(chuàng)文章,遵循CC 4.0 BY-SA版權(quán)協(xié)議昌抠,轉(zhuǎn)載請(qǐng)附上原文出處鏈接及本聲明。
原文鏈接:https://blog.csdn.net/xc_123/article/details/93971706