「redis」安装、配置及启动关闭

【环境】centos7
 
安装:
$sudo yum install redis
 
修改配置:
默认启动不是后台启动,需要修改,修改 /etc/redis.conf文件中的
daemonize no  改为 daemonize yes
 
关闭
redis-cli -h 127.0.0.1 -p 6379 shutdown
 
启动
$redis-server /etc/redis.conf

posted on 2018-05-02 09:50  trako  阅读(115)  评论(0编辑  收藏  举报

导航