准备安装软件(download)
1> [redis]
http://redis.googlecode.com/files/redis-2.4.3.tar.gz
2> [phpredis]
https://github.com/owlient/phpredis/tarball/master
redis安装跳过
1>【安装phpredis扩展】
tar -zxvf owlient-phpredis-2.1.1-1-g90ecd17.tar.gz cd owlient-phpredis-90ecd17 /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 #重启apache service httpd restart 文章标签: redis 扩展 linux extension c
原文地址:https://www.cnblogs.com/OnlyCT/p/9048928.html
时间: 2024-10-26 10:10:44