Centos添加supervisor为服务,启动/关闭,设置开机启动服务
Supervisor设置开机启动有很多,这里以Centos为例,仅供参考!
根据不同的系统,有不同的脚本,参考 https://github.com/Supervisor/initscripts
这里以Centos为例,我们选择:
https://github.com/Supervisor/initscripts/blob/master/redhat-init-mingalevme
vim /etc/init.d/supervisord
将上述地址文件内容拷贝到 vim /etc/init.d/supervisord
,将第32行
PIDFILE=/var/run/supervisord.pid
改为:
PIDFILE=/tmp/supervisord.pid
保存后就可以添加至服务并设置开机启动啦。
chkconfig --add supervisord chkconfig supervisord --level 345 on
启动、关闭、重启supervisord
命令
service supervisord start service supervisord stop service supervisord restart
最后,supervisor
的更多用法,请参考 官方文档 。
严正声明:本站只出售html页面效果模板,不提供任何类型的网站内容数据,模板仅供学习交流使用,不得用于任何商业以及触犯国家法律法规的用途,违者需自行承担全部责任,与本站无以及模板设计作者无关,本站以及模板作者不承担任何连带责任!!!!
关爱邦 | 网站源码程序下载_免费商业源码分享! » Centos添加supervisor为服务,启动/关闭,设置开机启动服务
关爱邦 | 网站源码程序下载_免费商业源码分享! » Centos添加supervisor为服务,启动/关闭,设置开机启动服务