Redis下载 解压 编译安装:make && make install 把redis.conf复制到etc
编辑redis.conf,配置后台启动: 将daemonize属性改为yes
启动Redis服务器并指定配置文件 redis-server /etc/redis.conf
执行redis-cli启动Redis客户端 查看端口号 netstat tunpl|grep 6379
关闭Redis客户端:redis-cli shutdown 关闭Redis服务:pkill redis-server