centos 安装配置 redis
yum -y install epel-release
yum -y install redis
service redis restart
redis-cli
>set key1 1
>get key1
>quit
chkconfig redis on
如果需要与其他服务器联系
cp /etc/redis.conf /etc/redis.conf.backup
sudo vi /etc/redis.conf
....
#bind 127.0.0.1
bind 本机在局域网的ip
....
service redis restart
redis-cli -h ip地址 -p 6379
参考链接:
https://my.oschina.net/u/996795/blog/697979
http://konboi.hatenablog.com/entry/2013/03/05/155107