php安装redis.so扩展
下载扩展, redis-5.1.0
https://pecl.php.net/package/redis
安装扩展
https://www.cnblogs.com/pfdltutu/p/10564487.html
wget https://pecl.php.net/get/redis-5.1.0.tgz tar -zxvf redis-5.1.0.tgz cd redis-5.1.0 /usr/local/php7/bin/phpize ./configure --with-php-config=/usr/local/php7/bin/php-config make && make install
配置php.ini
extension=redis.so
重启fpm
kill -USR2 9001
安装redis服务
下载最近版本redis, https://redis.io/download
wget http://download.redis.io/releases/redis-5.0.5.tar.gz tar -zxvf redis-5.0.5.tar.gz cp -r redis-5.0.5 /opt/ cd /opt/redis-5.0.5/ make && make install
修改配置 vim /opt/redis-5.0.5/redis.conf
daemonize yes //后台运行方式改为yes, 默认no protected-mode no //这个还需要了解下
启动
/opt/redis-5.0.5/src/redis-server /opt/redis-5.0.5/redis.conf
安装redis make
https://www.cnblogs.com/zuidongfeng/p/8032505.html
https://www.cnblogs.com/zuidongfeng/p/8032505.html
https://www.cnblogs.com/cdw0724/p/10876869.html