1、下载
1 | wget https://pecl.php.net/get/redis-2.2.7.tgz |
2、解压安装
1 | tar zxvf redis-2.2.7.tgz -C /usr/src/ |
3、配置PHP加载扩展
1 | vim local etc/php.ini |
4、验证是否安装成功
1 | php -m |
或者重启php和nginx,查看phpinfo
1 | wget https://pecl.php.net/get/redis-2.2.7.tgz |
1 | tar zxvf redis-2.2.7.tgz -C /usr/src/ |
1 | vim /usr/local/php/etc/php.ini |
1 | php -m |
或者重启php和nginx,查看phpinfo
微信打赏
支付宝打赏