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 linux shuts down redis

2025-03-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

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!

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

Servers

Wechat

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

12
Report