phprun.command 279 B

123456789101112131415
  1. #!/bin/bash
  2. # 进入项目容器运行PHP脚本文件
  3. # 进入容器
  4. docker exec -it crmeb_php /bin/bash
  5. # 进入项目
  6. cd /var/www
  7. # 启动 定时任务
  8. php think timer start --d
  9. # 启动 长连接
  10. php think workerman start --d
  11. # 启动 队列
  12. php think queue:listen --queue