官网 https://redis.io/
下载解压后进入目录 make
mkdir /usr/local/redis
cp redis.conf src/redis-server src/redis-cli /usr/local/redis/
cd /usr/local/redis
vi redis.conf修改配置,使redis服务在后台运行:
redis.conf#
daemonize yes
phpredis安装
git clone https://github.com/phpredis/phpredis.git
/usr/local/php/bin/phpize(在这里有可能出现autoconf没有,直接使用yum安装即可)
./configure --with-php-config = /usr/local/php/bin/php-config
make && make install