1、确保安装好php和一些必要依赖

yum -y install gcc gcc-c++ autoconf

2、通过http://php.net/manual/en/swoole.installation.php 去下载swoole扩展包

git clone https://github.com/swoole/swoole-src.git
cd swoole-src
phpize
./configure
make && make install

3、找到php.ini文件并在扩展位置添加一行,(在linux扩展结尾是" .so ",不要写成" .dll ")

extension=swoole.so

4、调用php -m查看下扩展列表是否包含swoole,有该项即表示成功安装。(在pc端phpinfo是找不到哟)

LNMP下安装swoole扩展

相关文章:

  • 2021-10-01
  • 2021-10-19
  • 2022-12-23
  • 2021-07-28
  • 2021-05-30
  • 2021-07-24
  • 2021-07-22
  • 2021-07-17
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-08
  • 2022-01-27
  • 2021-07-10
  • 2021-07-24
相关资源
相似解决方案