Get the App
SLTechnology News&Howtos  ›  Servers  › 

How linux shuts down redis

Shulou Source: shulou.com Published: 2022-05-31 16:51:19 10月11日 Update

This article introduces the knowledge of "how linux shuts down redis". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

In linux, you can use the "Redis Shutdown" command to shut down the redis server with the syntax "redis-cli shutdown"; an error is returned when the execution fails, and no information is returned when the execution is successful, the connection between the server and the client is disconnected, and the client automatically exits.

The operating environment of this tutorial: linux7.3 system, Dell G3 computer.

How linux shuts down redis

1.redis introduction

(1) Redis is the abbreviation of Remote Dictionary Server (remote data Service), an in-memory cache database developed by Italian antirez (Salvatore Sanfilippo).

(2) the software is written in C language and its data model is key-value.

(3) it supports many types of calue storage, including String (string), hash (hash), list (linked list), set (collection), and Zset (ordered set).

(4) in order to ensure that the efficiency data are cached in memory, it can also periodically write updated data to disk or modify operations to additional record files.

Characteristics of 2.redis

1) read data at high speed (in-memory)

2) lighten the burden on servers

3) it has the function of set calculation (better than ordinary database and products of the same category).

4) support for multiple data structures

3. Suitable for the occasion and its advantages

1) [Sort Set] ranking application, take top n operation. For example, a hot topic on sina Weibo

2) [List] get the latest N pieces of data or the latest data of a classification

3) Calculator application

4) [Set] sns (social network site) gets mutual friends

5) [Set] Anti-attack system (ip judgment) and so on. For example, if the password is typed incorrectly many times, it will be frozen.

To turn off Redis, use the command

#. / redis-cli shutdownroot@song-PC:~# cd / etc/redis/root@song-PC:/etc/redis# lsdump.rdb redis-server.post-down.d redis-server.pre-down.dredis.conf redis-server.post-up.d redis-server.pre-up.droot@song-PC:/etc/redis# redis-server redis.conf, "how linux shuts down redis" ends here. Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Tags: Data services servers memory content commands customers databases more knowledge systems caching high-speed applications support order learning and then advantages cycles Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi Shulou Technology macOS Docker OPPO Reno