#!/bin/bash basepath=$(cd `dirname $0`; pwd) cd $basepath nohup php ../artisan swoole:task start >/dev/null 2>&1 & echo 'Swoole 任务服务运行成功 ...'