install redis
1、 wget http://download.redis.io/releases/redis-3.0.6.tar.gz 2、 tar zxvf redis-3.0.6.tar.gz 3、 cd redis-3.0.6 4、 make PREFIX=/usr/local/redis install 5、 cp redis.conf /usr/local/redis
Configure php-redis
1、 wget https://github.com/nicolasff/phpredis/archive/master.tar.gz 2、 tar zxvf master 3、 cd phpredis-master/ 4 , phpize 5, ./configure --enable- redis 6, make && make install 7, vim /alidata/server/php/etc/php.ini at the end with extensions= redis.so 8, /etc/init. d/php-fpm restart // Restart php-fpm and load the new configuration file! ! !