- 去github下载tar包
- tar -zxvf
- cd 进去
- 执行: /usr/local/php/bin/phpize
- 执行: ./configure –with-php-config=/usr/local/php/bin/php-config
- make && make install
- #执行完make install后会生成
- Installing shared extensions: /usr/local/php//lib/php/extensions/no-debug-non-zts-20060613/
- 修改php.ini
- vi /usr/local/php/etc/php.ini
- 查找extension_dir,修改为
- extension_dir = “/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/”
- 添加redis
- extension = redis.so
- 重启服务器
linux安装php-redis
最新推荐文章于 2022-08-15 13:46:53 发布