In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains the "redis master-slave building method", the content of the article is simple and clear, easy to learn and understand, now please follow the editor's train of thought slowly in depth, together to study and learn "redis master-slave building method" bar!
Redis is a key-value storage system. Similar to Memcached, it supports relatively more value types to be stored, including string (string), list (linked list), set (collection), and zset (ordered collection). These data types support push/pop, add/remove, and take intersection union and difference sets, and richer operations, and these operations are atomic. On this basis, Redis supports a variety of different sorting methods. Like memcached, data is cached in memory for efficiency. The difference is that Redis will periodically write updated data to disk or modify operations to additional record files, and on this basis to achieve master-slave (master-slave) synchronization. Redis is a high-performance key-value database. The emergence of Redis makes up for the deficiency of keyvalue storage such as memcached to a great extent, and can play a good complementary role to relational database in some cases.
1. Install the required environment and tools
Yum-y install wget vim tcl gcc make
2. Download the redis package and decompress it
Cd / usr/local/srcwget http://download.redis.io/releases/redis-3.2.8.tar.gztar-zxvf redis-3.2.8.tar.gz
3. Compile redis source files
Cd redis-3.2.8makemake install
4. Configuration file
1. Change the daemonize no in the master-slave redis configuration file redis.conf to yes
Start the service
Start the service
Test data synchronization
Master redis:
From redis:
The default read-write separation
From redis:
Thank you for your reading, the above is the content of "the building method of redis master and slave". After the study of this article, I believe you have a deeper understanding of the building method of redis master and slave, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.