php执行shell脚本需要sudo权限

 $res = shell_exec("git -C /var/www/hyperf pull 2>&1");

启动hyperf项目

sudo php bin/hyperf.php start
posted @ 2024-11-23 02:25  冯元春  阅读(7)  评论(0)    收藏  举报