diff --git a/source/docker/run.sh b/source/docker/run.sh index 5ee4601..f211c90 100644 --- a/source/docker/run.sh +++ b/source/docker/run.sh @@ -27,7 +27,7 @@ echo "参数为:$@" if [ "$1" = "server" ] || [ "$1" = "" ]; then # 运行定时任务 TODO:以指定用户运行 - su - www-data -c "nohup php /var/www/html/think timer --local --quit &" + su -s /bin/bash www-data -c "nohup php /var/www/html/think timer --local --quit > /var/www/html/runtime/timer.log 2>&1 &" # 运行nginx service nginx start # 运行php-fpm