出于安全原因,我们已禁用pcntl_async_signals()|| Ubuntu 16 - Laravel 5.6

问题描述 投票:0回答:1

我有一台运行在Ubuntu 16.04上的服务器在PHP版本7.2.8上运行Laravel app 5.6.29版。

我已经设置了一些队列作业来将视频上传到服务器并编译它们并上传到s3存储桶。从过去几个小时突然,我面临以下问题。

出于安全原因,已禁用pcntl_async_signals()

我也尝试过这个线程https://stackoverflow.com/a/16262922的解决方案 它也没有帮助。

enter image description here


编辑:我还尝试重新启动队列工作程序,手动运行队列工作程序。还尝试重启supervisorctl。

sudo supervisorctl restart all
php artisan queue:restart
php artisan queue:work
php ubuntu-16.04 laravel-5.6 php-7.2 pcntl
1个回答
1
投票

检查你的php.ini配置。你会找到一条线:

disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid........

您需要删除队列驱动程序调用的所有函数,例如pcntl_async_signals,pcntl_async_signals,pcntl_alarm,pcntl_signal。

© www.soinside.com 2019 - 2024. All rights reserved.