centos7 php7编译redis和swool扩展

编译安装php7的redis扩展支持

wget -c https://github.com/phpredis/phpredis/archive/php7.zip unzip php7.zipcd phpredis-php7 /usr/local/php/bin/phpize ./configure --with-php-config=/usr/local/php/bin/php-config make && make install cd ..vim /usr/local/php/etc/php.ini 中加入 extension=redis.so

编译安装php7的swoole
wget -c https://github.com/swoole/swoole-src/archive/swoole-1.7.21-stable.tar.gz tar zxvf swoole-1.7.21-stable.tar.gz cd swoole-src-swoole-1.7.21-stable/ /usr/local/php/bin/phpize ./configure --with-php-config=/usr/local/php/bin/php-config make && make install cd ..vim /usr/local/php/etc/php.ini 中加入 extension=swoole.so

【centos7 php7编译redis和swool扩展】

    推荐阅读