当前位置:论坛首页 > Linux面板 > 讨论

宝塔PHP7.3安装pthreads多线程教程!

发表在 Linux面板2021-9-11 12:33 [复制链接] 2 3574

  1. 1.开始安装 pthreads,数组72表示我用的是7.2版本的PHP
  2. [root@localhost ~]# wget https://codeload.github.com/krakjoe/pthreads/zip/master

  3. [root@localhost ~]# unzip master

  4. [root@localhost ~]# cd pthreads-master/

  5. [root@localhost pthreads-master]# phpize

  6. [root@localhost pthreads-master]#  /www/server/php/72/bin/phpize

  7. [root@localhost pthreads-master]#./configure --with-php-config=/www/server/php/72/bin/php-config

  8. [root@localhost pthreads-master]# make && make install

  9. [root@localhost pthreads-master]# echo "extension = oauth.so" >> /www/server/php/72/etc/php.ini

  10. [root@localhost pthreads-master]# /etc/init.d/php-fpm-72 reload

  11. [root@localhost pthreads-master]# cd .. && rm -rf pthreads-master* //清除下载的文件

  12. 1、确认扩展存在

  13. [root@localhost ~]# php -m| grep pthreads
  14. pthreads
复制代码


使用道具 举报 只看该作者 回复
发表于 2021-9-11 12:34:45 | 显示全部楼层
加微入群,或者找我解决宝塔问题!
使用道具 举报 回复 支持 反对
发表于 2021-9-15 11:30:19 | 显示全部楼层
linming3837 发表于 2021-9-11 12:34
加微入群,或者找我解决宝塔问题!

我是 7.4,按照上述操作,没成功呢,能加你微吗?
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

点击联系技术免费分析

工作时间:09:00至18:30

快速回复 返回顶部 返回列表