phprun.sh 443 B

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