php Use of undefined constant SIGTERM - assumed 'SIGTERM'的解决方法

Friday, Jan 3, 2020 | 1 minute read | Updated at Friday, Jan 3, 2020

@

再FreeBSD系统执行Php脚本时出现了下面的错误

Use of undefined constant SIGTERM - assumed 'SIGTERM'

是因为缺少了pcntl组件导致的,再FreeBSD下安装PHP pcntl扩展很容易

pkg search pcntl

然后再

pkg install pcntl

安装你服务器PHP版本的pcntl组件即可

重启PHP进程即可

© 2018 - 2026 vpslala

🌱 Powered by Hugo with theme Dream.