Call to undefined function Workerman\posix_getpid()
今天在laravel中安装workerman,但安装完成后,迟迟不能启动,在使用命令:
php artisan workerman:httpserver start
显示错误提示:
Workerman[workerman:httpserver] start in DEBUG mode [Symfony\Component\Debug\Exception\FatalThrowableError] Call to undefined function Workerman\posix_getpid()
在网上找了好多方法,但没有好用,后来发现php-posix没有安装,安装即可,其命令如下:
yum install php-posix