#指向到網(wǎng)站目錄
cd /data/www/
#定時(shí)任務(wù)
su nobody -s /usr/local/bin/php think timer start >/dev/null &
#隊(duì)列
ps -ef|grep "think queue:listen"|grep -vq "grep" || (su nobody -s /usr/local/bin/php think queue:listen >/dev/null 2>&1) &
#長(zhǎng)連接服務(wù)
su nobody -s /usr/local/bin/php think workerman start >/dev/null &