centos yum 安装 redis
yum安装还是比较简单的,
yum install redis
安装完成,顺便看下配置
vim /etc/redis.conf
安装php的redis扩展
yum install php-redis
重启apache,
service httpd restart
phpinfo 一下,如果出现redis,则证明安装成功,开始使用吧!~
ps,因为 selinux,iptables的关系我们可能在测试的时候链接不上,可以先临时禁用。进行测试
setenforce 0 service iptables stop
浙公网安备 33010602011771号