supervisor 管理 laravelS

  1.安装supervisor

yum install supervisor

2、添加laravels.ini到supervisord.d
vim /etc/supervisord.d/laravels.ini

3、启动supervisor

systemctl start supervisord
supervisorctl start all

4、进入容器关闭laravels

   root@828b432c3c27:/docker/www/Laravel# php bin/laravels stop

  5、宿主机查看larvavels进程


[root@lsujkgpy1c ~]# ps -ef | grep laravels
root 8174 6336 0 14:19 ? 00:00:00 /usr/bin/docker-current exec -i php bash -c /docker/www/Laravel/bin/laravels start -i
root 8196 8179 0 14:19 ? 00:00:00 /docker/www/Laravel laravels: master process
root 8211 8196 0 14:19 ? 00:00:00 /docker/www/Laravel laravels: manager process
root 8214 8211 0 14:19 ? 00:00:00 /docker/www/Laravel laravels: worker process 0
root 8215 8211 0 14:19 ? 00:00:00 /docker/www/Laravel laravels: worker process 1
root 8216 8211 0 14:19 ? 00:00:00 /docker/www/Laravel laravels: worker process 2
root 8217 8211 0 14:19 ? 00:00:00 /docker/www/Laravel laravels: worker process 3
root 9232 7865 0 14:26 pts/1 00:00:00 grep --color=auto laravels




posted @ 2021-11-27 14:27  `奔跑的蜗牛  阅读(78)  评论(0编辑  收藏  举报