启动Redis的问题。停止Redis内存中数据存储

时间:2019-08-02 10:52:58

标签: ubuntu redis

我安装了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 Птн 2019-08-02 13:40:02 EEST; 1s ago
  Process: 7458 ExecStop=/usr/local/bin/redis-cli shutdown (code=exited, status=1/FAILURE)
  Process: 7456 ExecStart=/usr/local/bin/redis-server /etc/redis/redis.conf (code=exited, status=1/FAILURE)
 Main PID: 7456 (code=exited, status=1/FAILURE)

Авг 02 13:40:02 m0nte-cr1st0 systemd[1]: redis.service: Unit entered failed state.
Авг 02 13:40:02 m0nte-cr1st0 systemd[1]: redis.service: Failed with result 'exit-code'.
Авг 02 13:40:02 m0nte-cr1st0 systemd[1]: redis.service: Service hold-off time over, scheduling restart.
Авг 02 13:40:02 m0nte-cr1st0 systemd[1]: Stopped Redis In-Memory Data Store.
Авг 02 13:40:02 m0nte-cr1st0 systemd[1]: redis.service: Start request repeated too quickly.
Авг 02 13:40:02 m0nte-cr1st0 systemd[1]: Failed to start Redis In-Memory Data Store.
Авг 02 13:40:02 m0nte-cr1st0 systemd[1]: redis.service: Unit entered failed state.
Авг 02 13:40:02 m0nte-cr1st0 systemd[1]: redis.service: Failed with result 'start-limit-hit'.

Ubuntu 16.04

redis-stable位于主目录(~

redis.service

[Unit]
Description=Redis In-Memory Data Store
After=network.target

[Service]
User=redis
Group=redis
ExecStart=/usr/local/bin/redis-server /etc/redis/redis.conf
ExecStop=/usr/local/bin/redis-cli shutdown
Restart=always

[Install]
WantedBy=multi-user.target

0 个答案:

没有答案