1,执行脚本
/usr/local/services/php7/bin/php -d open_basedir= -d memory_limit=2000M -d disable_functions= /data/vhosts/项目目录xxx/artisan 要执行的命令
2,执行定时任务
/usr/local/services/php7/bin/php -d open_basedir= -d memory_limit=2000M -d disable_functions= /data/vhosts/项目目录xxx/artisan schedule:run-task 脚本路径
文章讲述了如何使用指定的PHP环境执行两个不同的命令:一个是直接运行artisan命令,另一个是安排定时任务来执行schedule:run-task脚本。这两个操作都设定了内存限制为2000M并禁用了特定函数。
2518

被折叠的 条评论
为什么被折叠?



