First, download the latest version of the Redis cd/usr/local/src wget-c https://redis.googlecode.com/files/redis-2.6.14.tar.gz
Second, compile and install Redis TAR-ZXVF redis-2.6.14.tar.gz cd redis-2.6.14 make sudo do install you need to install
#最近在研究NOSQL中的Redis的安装以及连接服务器
Preparation: Windows working platform, redis database, please download the website and extract it to the local disk to install the Redis process I do not detail: The following two pictures
let's go to the second
/********************************* general *********************************/ // Whether to run as a daemon daemonize yes // such as a later process, you need to specify a PID, the default is/var/run/ redis.pid
one: About Redis cluster
the present situation of 1:redis cluster
Reids-cluster plans to launch in redis3.0, can be regarded as a Antirez statement: HTTP://ANTIREZ.COM/NEWS/49 (PS: Skip the ticket for a long time, this year seems to speed up), the
Redis is a NoSQL database based on key-value pairs (key-value), which contains a variety of data structures. The number given on official web is read and write performance can reach 100,000/sec, visible speed.
As a simple example, open 5 Redis
Redis is a key-value storage system. Like memcached, it supports a relatively larger number of stored value types, including string (string), list (linked list), set (set), and Zset (ordered set). These data types support Push/pop, Add/remove and
1.string
The string in Redis is a sequence of bytes. The strings in Redis are binary safe, meaning that their lengths are not determined by any particular terminating character. As a result, you can store anything up to 512 megabytes in a
dear friends, long time no see. Has not been updated recently, because the company's project has been catching progress, but also table structure replacement, and refactoring, but also iterative requirements. Feel the project is going to be rotten ..
This blog post mainly describes how to implement cache development using SPRINGAOP + Redis + annotations. First, term description 1, Springaop AOP (Aspect oriented programming), the technology of aspect-oriented programming. AOP is a useful
1, window under the Redis installation
Address: https://github.com/MSOpenTech/redis/releases
Download redis-x64-3.2.100.msi or redis-x64-3.2.100.zip are available
2, click on the file to install, after installation to find Redis installation
Redis does not support the direct storage of Java objects to a database, so you need to serialize Java objects to a byte array, and then deposit the byte array into the Redis, and then take the byte array out of the Redis database when you need the
Redis Data backup and recovery
Persistence of
RDB Mode (default)
The persistence of the RDB approach is accomplished through snapshots (snapshotting), and Redis automatically snaps and stores all data in memory to the hard disk when certain
Overall Thinking
There have been previous Mybatis+redis integration in the Spring Environment (http://blog.csdn.net/xiadi934/article/details/50786293). Here we try the integration in spring boot, where some of the points of attention are different.
In this paper, Redis How to save relational data, and how to match, scope, fuzzy query For example, fuzzy query function is based on the latest 2.8.9 version. 1 Storage of relational data
Take the staff object as an example, in a relational database
Here is the configuration I used, using master-slave mode, turning off all persistence on master, and using aof persistence on slave:$cat/opt/redis/etc/redis.conf
##### #Master Config
# # #General Configuration
Daemonize Yes to run the program
Original address: Http://futeng.iteye.com/blog/2071867?utm_source=tuicool
Redis Source Download Address: http://download.csdn.net/detail/haitunxiaomo/8647255
Part I. Direct start
installation
Shell code:
The tar zxvf redis-2.8.9.tar.gz
Redis does not directly support indexing and needs to be maintained by itself.
For a range-only index, we can simply save the index as a kv pair, and V save the main key,
A range retrieval, or a Redis index, is implemented using the Zset of the
Redis capacity and usage planningIn the use of Redis process, we found that a lot of redis different from the memcached, but also different from the characteristics of MySQL.
(This article mainly discusses Redis is not enabled for VM support) 1.
Reference site: http://blog.nosqlfan.com/html/4077.html
This article comes from the gentle one knife sharing, introduced he in the actual work encounters some redis problems as well as the corresponding evasion and the solution, if you also use
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service