//更新yum仓库
yum update
//安装redis
yum install redis
//卸载
yum remove redis
service redis start //启动
service redis stop //关闭
service redis restart //重启
chkconfig redis on
[root@node404v /usr/local/redis]# redis-cli
127.0.0.1:6379> set age 10
OK
127.0.0.1:6379> get age
"10"
127.0.0.1:6379>