社区微信群开通啦,扫一扫抢先加入社区官方微信群
社区微信群
redis启动后的窗口该如何退出?
背景:默认安装,启动redis后,会进入一个redis窗口,如何退出呢?如下图
解决方法1: 直接按CTRL+C
解决方法2: 把配置文件改成后台启动 vim /etc/redis.conf
把 daemonize no 改成 daemonize yes
# 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
如果觉得我的文章对您有用,请随意打赏。你的支持将鼓励我继续创作!