pecl install redis
➜ git clone https://www.github.com/phpredis/phpredis.git
➜ cd phpredis ➜ phpize && ./configure && make && sudo make install
./configure --enable-redis --enable-redis-igbinaryRemember that after the
make install
step, you'll need to make sure you add extension=redis.so
either in your main php.ini
file or create an additional phpredis.ini
in the init.d
directory:You can figure out where PHP will look for that by doing this:
cthulu ➜ phpredis git:(develop) ✗ php --ini
Configuration File (php.ini) Path: /etc/php/7.0/cli
Loaded Configuration File: /etc/php/7.0/cli/php.ini
Scan for additional .ini files in: /etc/php/7.0/cli/conf.d
Additional .ini files parsed: /etc/php/7.0/cli/conf.d/20-redis.ini
cthulu ➜ phpredis git:(develop) ✗ cat /etc/php/7.0/cli/conf.d/20-redis.ini
extension=redis.so
rujukan
https://github.com/phpredis/phpredis/blob/develop/INSTALL.markdown
https://github.com/phpredis/phpredis/issues/1313
Comments
Post a Comment