启动Redis内存数据存储失败

问题描述 投票:0回答:1

在ubuntu 16.04上安装Redis后,无法激活该服务。当我用

sudo systemctl status redis
检查它时,它显示以下错误:

● redis.service - Redis In-Memory Data Store
   Loaded: loaded (/etc/systemd/system/redis.service; disabled; vendor preset: enabled)
   Active: failed (Result: start-limit-hit) since Wed 2019-06-12 12:34:59 UTC; 6s ago
  Process: 16672 ExecStop=/usr/local/bin/redis-cli shutdown (code=exited, status=203/EXEC)
  Process: 16670 ExecStart=/usr/local/bin/redis-server /etc/redis/redis.conf (code=exited, status=203/EXEC)
 Main PID: 16670 (code=exited, status=203/EXEC)

Jun 12 12:34:59 ip- systemd[1]: redis.service: Service hold-off time over, scheduling restart.
Jun 12 12:34:59 ip- systemd[1]: Stopped Redis In-Memory Data Store.
Jun 12 12:34:59 ip- systemd[1]: redis.service: Start request repeated too quickly.
Jun 12 12:34:59 ip- systemd[1]: Failed to start Redis In-Memory Data Store.
Jun 12 12:34:59 ip- systemd[1]: redis.service: Unit entered failed state.
Jun 12 12:34:59 ip- systemd[1]: redis.service: Failed with result 'start-limit-hit'.

我尝试过重新启动redis服务器

sudo systemctl restart redis
但没有成功。

还尝试使用以下代码更改 redis 目录的所有者:

sudo chown redis:redis /var/lib/redis

sudo systemctl restart redis

但这也行不通。

请帮我解决这个问题。

ubuntu amazon-ec2 redis
1个回答
-1
投票

问题解决了吗,可以分享给我吗?

© www.soinside.com 2019 - 2024. All rights reserved.