美文网首页Linux
php7的redis和yaf扩展模块的安装

php7的redis和yaf扩展模块的安装

作者: GilbertW | 来源:发表于2016-11-03 23:09 被阅读0次

1. 安装redis框架:

unzip phpredis-php7.zip

cd phpredis-php7

/app/php7.0.4/bin/phpize

./configure --with-php-config=/app/php7.0.4/bin/php-config

make

make install

附件:

phpredis-php7.zip

2. 安装yaf框架:

wget https://pecl.php.net/get/yaf-2.3.5.tgz

tar zxvf yaf-2.3.5.tgz

cd yaf-2.3.5/

/app/php7.0.4/bin/phpize

./configure --with-php-config=/app/php7.0.4/bin/php-config

make

make install

3. 编辑php.ini文件,在文件末尾添加以下命令:

extension = redis.so

extension = yaf.so

4.使用以下命令重启服务并检查是否安装成功:

/server/scripts/php-fpm restart

php -m|grep redis

php -m|grep yaf

相关文章

网友评论

    本文标题:php7的redis和yaf扩展模块的安装

    本文链接:https://www.haomeiwen.com/subject/bayiuttx.html