环境
- php(phpize php-config必须安装)
php -v 查看php的版本号
php -m 查看php已安装的扩展
which phpize
which php-config
具体安装
unzip.develop.zip
phpize
./configure -with-php-config=/usr/bin/php-config
make
make install
php.ini 中添加extension=redis.so
[devops@localhost bin]$ php --ini 查找php.ini的位置
Configuration File (php.ini) Path: /usr/local/php/etc
Loaded Configuration File: /usr/local/php/etc/php.ini
Scan for additional .ini files in: /usr/local/php/conf.d
Additional .ini files parsed: /usr/local/php/conf.d/002-zendguardloader.ini,
/usr/local/php/conf.d/005-memcached.ini,
/usr/local/php/conf.d/007-redis.ini
网友评论