Redis 安装详见 http://www.cnblogs.com/zendwang/p/6560628.htmlhtml
当前安装测试版本:Redis 3.2.8linux
默认安装完毕Redis只能本机访问redis
[root@zendlinux soft]# ps -ef |grep redis root 1763 1 0 15:21 ? 00:00:00 /usr/local/bin/redis-server 127.0.0.1:6379 root 1854 1656 0 15:33 pts/1 00:00:00 grep redis
须要开启远程登陆。解决方法以下:在redis的配置文件redis.conf中,找到bind 127.0.0.1注释掉。测试
[root@zendlinux soft]# vi /etc/redis/6379.conf
重启服务便可spa
[root@zendlinux soft]# /etc/init.d/redis_6379 stop Stopping ... Redis stopped [root@zendlinux soft]# /etc/init.d/redis_6379 start Starting Redis server... [root@zendlinux soft]# ps -ef |grep redis root 1862 1 0 15:37 ? 00:00:00 /usr/local/bin/redis-server *:6379 root 1866 1656 0 15:37 pts/1 00:00:00 grep redis
我开启远程访问的Redis 部署192.168.10.197,我在另外一台服务,192.168.10.198上测试结果code