如何停止Redis服务器? [英] How can I stop redis-server?

查看:1019
本文介绍了如何停止Redis服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我显然正在运行redis-server实例,因为当我尝试通过输入redis-server来启动新服务器时,受到以下欢迎:

I apparently have a redis-server instance running because when I try to start a new server by entering redis-server, I'm greeted with the following:

Opening port: bind: Address already in use

我不知道如何停止该服务器并启动新服务器.

I can't figure out how to stop this server and start a new one.

在CLI中键入命令时,是否可以在redis-server后面附加任何命令?

Is there any command I can append to redis-server when I'm typing in the CLI?

我的操作系统是Ubuntu 10.04.

My OS is Ubuntu 10.04.

推荐答案

要么连接到节点实例,然后使用关闭命令,或者如果您使用的是ubuntu,则可以尝试通过init.d重新启动Redis服务器:

Either connect to node instance and use shutdown command or if you are on ubuntu you can try to restart redis server through init.d:

/etc/init.d/redis-server restart

或停止/启动它:

/etc/init.d/redis-server stop
/etc/init.d/redis-server start

在Mac上

redis-cli shutdown

这篇关于如何停止Redis服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆