centos7 redis and lower mounting php-redis

Under centos7 redis installation and extension installation php-redis

//一直yes就可以了
yum install redis

//配置
whereis redis.conf
vi /etc/redis.conf   /搜索  n下一个
bind 127.0.0.1  //远程开放
protected-mode no
requirepass 123456

//redis重启
systemctl restart redis

redis-cli
auth 123456
//临时配置
config get protected-mode
config set protected-mode no

//安装扩展 一直yes
yum install -y php72w-pecl-redis

//php重启
systemctl restart php-fpm

Guess you like

Origin www.cnblogs.com/L-ran/p/12059528.html