Swoole支持异步redis
作者:
沐青之枫 | 来源:发表于
2018-04-26 10:34 被阅读90次安装hiredis
编译安装
☁ ~ unzip hiredis-0.13.3
☁ ~ cd hiredis-0.13.3
☁ hiredis-0.13.3 make -j
☁ hiredis-0.13.3 sudo make install
重新编译swoole
,加入--enable-async-redis
☁ ~ cd /Applications/MAMP/bin/php/php7.0.27/include/php/swoole-src/
☁ swoole-src ./configure --with-php-config=/Applications/MAMP/bin/php/php7.0.27/bin/php-config --enable-async-redis
☁ swoole-src make clean
☁ swoole-src make -j
☁ swoole-src sudo make install
查看是否编译成功
☁ ~ php --ri swoole
//出现此条表示编译正确
async redis client => enabled
本文标题:Swoole支持异步redis
本文链接:https://www.haomeiwen.com/subject/zfrplftx.html
网友评论