在后台运行Redis服务器(而不运行终端)?

时间:2020-04-03 15:25:13

标签: redis

问题:

退出终端后,似乎无法弄清楚如何保持Redis服务器运行。

服务器:

我使用以下快速入门指南安装了Redis:https://redis.io/topics/quickstart

我们正在OVH VPS上运行它:

Architecture:   x86_64
Operating System:   linux

我尝试过什么:

redis-server --daemonize yes

尝试了上述操作,但仅在终端保持打开状态时才可用。一旦关闭终端,redis服务器就会停止。

# 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

我更改了配置,但是无论如何,只要关闭终端,Redis服务器就会停止。

nohup redis-server &

尝试过nohup,但是在关闭终端后,该操作也无法正常工作。

How to keep redis server running

0 个答案:

没有答案