Asynchronous Redis Client for Swoole
One, install Hiredis
wget https://github.com/redis/hiredis/archive/v0.13.3.tar.gz
Make it directly and install it.
is to put the relevant header file in the appropriate directory.
Second, upgrade the Swoole version to 1.8.0
GitHub Address:
git clone https://github.com/swoole/swoole-src.git
or tar.gz bag.
wget https://github.com/swoole/swoole-src/archive/swoole-1.8.0-stable.tar.gz
Direct decompression
Phpize
Add Enable-async-redis when editing
./configure--prefix=/usr/local/swoole/--enable-async-mysql--enable-openssl--enable-async-redis
Make && make install
If this is a new installation, follow the steps below:
If successful, the generated extension directory is output:
Installing Shared extensions:/data/server/php/lib/php/extensions/no-debug-non-zts-20100525/
Add extension= ' swoole.so ' to the php.ini
Restarting Ng and PHP-FPM
PHP--ri swoole View, upgrade/install successful
Swoole Asynchronous Redis Installation