我在 Windows Server 2012 上安装了 redis 服务。它在任务管理器中,但它已停止并且我无法运行它。 如果我手动启动 redis-server.exe 文件,它就会工作。 我可以做些什么让它自动工作?
最佳答案
您没有指定您正在运行的 Redis 的 Windows 端口(没有官方端口),但是 MSOpenTech's是目前为止最新的,相应的RedisWatcher服务将使其保持正常运行。来自 RedisWatcher 自述文件:
RedisWatcher is an application that will run one or more instances of redis-server. If the redis-server process terminates, then RedisWatcher will restart it.
RedisWatcher is installed as a Windows service. It can also run as an application by passing 'console' as a command line argument.
无论出于何种原因,他们没有在最新的 (2.6) 分支中为观察者服务提供二进制文件,但该服务的 2.4 版本是兼容的,并且他们有相应的二进制文件。 See here有关启动和运行它的详细说明。
关于Redis 服务没有自动运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17986914/