1.下载swoole


 

3.swoole提供了一些配置选项,当中如果要开启--enable-async-redis的话,必须安装hiredis扩展

git clone https://github.com/antirez/hiredis.git
make &&  make install
ldconfig

2.解压并配置

 

/usr/local/php/bin/phpize
./configure --enable-swoole-debug --enable-sockets --enable-async-mysql --enable-async-redis --enable-async-httpclient  --enable-openssl --enable-coroutine --with-php-config=/usr/local/php/bin/php-config

4.编译安装

make
make install

5.编译安装成功后,修改php.ini加入extension=swoole.so

 

相关文章:

  • 2022-12-23
  • 2021-12-12
  • 2021-04-14
  • 2022-12-23
  • 2022-02-09
猜你喜欢
  • 2021-12-18
  • 2021-10-14
  • 2021-09-04
  • 2021-05-30
  • 2021-07-24
相关资源
相似解决方案