如何在Debian 9上安装pthreads PHP扩展
令人惊讶的是,我在任何地方都找不到答案。我需要帮助在安装了PHP7.3的Debian 9上安装如何在Debian 9上安装pthreads PHP扩展,php,debian,pthreads,Php,Debian,Pthreads,令人惊讶的是,我在任何地方都找不到答案。我需要帮助在安装了PHP7.3的Debian 9上安装pthreadsPHP扩展。 如果我写php-v,我会得到以下结果: PHP 7.3.6-1+0~20190531112735.39+stretch~1.gbp6131b7 (cli) (built: May 31 2019 11:27:35) ( NTS ) Copyright (c) 1997-2018 The PHP Group Zend Engine v3.3.6, Copyright (c)
pthreads
PHP扩展。
如果我写php-v
,我会得到以下结果:
PHP 7.3.6-1+0~20190531112735.39+stretch~1.gbp6131b7 (cli) (built: May 31 2019 11:27:35) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.6, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.3.6-1+0~20190531112735.39+stretch~1.gbp6131b7, Copyright (c) 1999-2018, by Zend Technologies
我试图从pecl.php.net下载.tgz文件,将其解压缩,放入/etc/php/7.3/fpm/ext
(我创建了ext
目录),并将扩展名\u dir
定义为php.ini
中的那个目录。
然后我在php.ini
文件extension=/etc/php/7.3/fpm/ext/pthreads-3.1.6
中编写了代码,然后重新启动了服务器
如果我编写
php-m
,我仍然看不到pthreads
扩展。据我所知,您必须在启用pthread支持的情况下自己编译PHP7.x才能使其正常工作