Centos7.6如何配置使用supervisor設(shè)置進(jìn)程守護(hù)
1.輸入該命令按回車(chē)鍵:`vi /etc/supervisord.conf`
2.按“i”進(jìn)入插入模式,找到`inet_http_server`,將注釋去掉
3.找到`include`,將注釋去掉,設(shè)置ini文件的保存目錄,修改完成后按`ESC`鍵輸入`wq`按回車(chē)鍵保存退出vi編輯
4.輸入該命令按回車(chē)鍵:`mkdir /etc/supervisor`
5.輸入該命令按回車(chē)鍵:`mkdir /etc/supervisor/config.d`
6.輸入該命令按回車(chē)鍵:`cd /etc/supervisor/config.d`
7.輸入該命令按回車(chē)鍵:`vi test.ini`
8.按`i`進(jìn)入插入模式,參考以下方式設(shè)置,command為指定程序路徑,修改完成后按`ESC`鍵輸入`wq`按回車(chē)鍵保存退出vi編輯
[program:test] command=/root/apache-tomcat-9.0.80/bin/startup.sh user=root autostart=true autorestart=true stderr_logfile=/root/test.err.log stdout_logfile=/root/test.out.log
9.輸入該命令按回車(chē)鍵:`supervisord -c /etc/supervisord.conf`
版權(quán)保護(hù): 本文「Centos7.6如何配置使用supervisor設(shè)置進(jìn)程守護(hù)」由 云主機(jī)配置專(zhuān)家 原創(chuàng),轉(zhuǎn)載請(qǐng)保留鏈接: http://www.iqcg.cn/docs/system/395.html