#!/bin/bash basepath=$(cd `dirname $0`; pwd) cd $basepath #pidlist=`ps -ef | grep price:task | grep -v grep |awk '{print $2}'` #kill -9 $pidlist nohup php ../artisan price:task start >/dev/null 2>&1 & echo '价格服务运行成功 ...'