背景:默认安装,启动redis后,会进入一个redis窗口,如何退出呢?如下图
redis启动后的窗口该如何退出?_redis 启动方式 退出启动窗口 后台
解决方法1: 直接按CTRL+C
解决方法2: 把配置文件改成后台启动 vim /etc/redis.conf
把 daemonize no 改成 daemonize yes
1.登录后复制
# By default Redis does not run as a daemon. Use 'yes' if you need it.
# Note that Redis will write a pid file in /var/run/redis.pid when daemonized.
daemonize yes