Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to restart redis under linux

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces how to restart redis under linux, which is very detailed and has a certain reference value. Interested friends must finish reading it!

Introduction:

Redis has been added to the etc, when the server starts redis also starts, but can not connect to the redis, all have the following process.

View redis status: systemctl status redis

● redis.service-redis-server

Loaded: loaded (/ usr/lib/systemd/system/redis.service; disabled; vendor preset: disabled)

Active: inactive (dead)

Found that it was not activated.

Check the status after startup: systemctl start redis

[root@VM_0_2_centos /] # systemctl status redis

● redis.service-redis-server

Loaded: loaded (/ usr/lib/systemd/system/redis.service; disabled; vendor preset: disabled)

Active: active (running) since Thu 2019-03-21 08:58:08 CST; 5s ago

Process: 26556 ExecStart=/usr/local/bin/redis-server / usr/local/yangsx/redis/redis-3.0.0/redis.conf (code=exited, status=0/SUCCESS)

Main PID: 26557 (redis-server)

CGroup: / system.slice/redis.service

└─ 26557 / usr/local/bin/redis-server *: 6379

Restart redis:systemctl restart redis.service

The above is all the contents of the article "how to restart redis under linux". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report