centos 安装redis

安装

yum install redis

运行

使用redis-server运行,默认不使用配置文件,使用redis-server /etc/redis.conf可在后台运行

默认端口为6379,可用redis-cli查看