yum安装redis

 

首先安装epel源

yum install -y epel-release

然后安装redis 

yum install -y redis

redis 操作

//启动redis
service redis start

//查看redis运行状态
service redis status

//停止redis
service redis stop

//重启redis
service redis restart

设置成开机自启动

chkconfig redis on

 

卸载redis

yum remove redis

 

Logo

更多推荐