centos下安装supervisor的步骤详解


当前第2页 返回上一页

a.在指定目录下创建文件supervisord.service

1

vim /usr/lib/systemd/system/supervisord.service

b.输入以下内容:

1

2

3

4

5

6

7

8

9

10

11

12

13

14

[Unit]

Description=Supervisor daemon

 

[Service]

Type=forking

ExecStart=/usr/bin/supervisord -c /etc/supervisor/supervisord.conf

ExecStop=/usr/bin/supervisorctl shutdown

ExecReload=/usr/bin/supervisorctl reload

KillMode=process

Restart=on-failure

RestartSec=42s

 

[Install]

WantedBy=multi-user.target

c.执行以下命令:

1

systemctl enable supervisord

d.验证是否为开机启动:

1

2

#提示 enabled 表示成功

systemctl is-enabled supervisord

5、常用命令

1

2

3

4

5

6

service supervisord start #启动

service supervisord stop #停止

service supervisord status #状态

supervisorctl shutdown #关闭所有任务

supervisorctl stop|start program_name #启动或停止服务

supervisorctl status #查看所有任务状态

以上就是centos下安装supervisor的步骤详解的详细内容,更多文章请关注木庄网络博客

返回前面的内容

相关阅读 >>

学习Linux用哪个系统

Linux中的重定向全面解析

Linux如何远程连接其他Linux

Linux解压zip文件命令介绍

目标自动快照策略已经被应用到磁盘上如何删除一条自动快照策略

Linux实现免密登录功能

通过磁盘入口或者快照入口怎么来指定执行的自动快照策略

Linux怎么进行压缩

Linux靠什么赚钱

Linux图标为什么是企鹅?

更多相关阅读请进入《Linux》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...