Redis is one of the most popular NoSQL systems, and it is a key-value storage system. Similar to memcached, but largely compensates for the lack of memcached, which supports a relatively large number of stored value types, including string, list,
the difference between Redis and memcached
The difference between Redis and memcached is simple, and most will get the following view:1 Redis not only supports simple k/v types of data, but also provides storage of data structures such as
After installing redis-2.8.13, I found that I did not start the script and wrote one myself:
Script one:
#!/bin/sh
# chkconfig:345
# Description:startup and shutdown script for Redis
redis_dir=/usr/local/bin
#export $
First, installation
1. Official: http://www.redis.cn/download.html
2. Download, unzip, compile
wget http://download.redis.io/releases/redis-2.8.18.tar.gz
tar xzf redis-2.8.18.tar.gz
CD redis-2.8.18 Make
(Note: Errors that may occur when
# Redis-sentinel's official website address: Http://redis.io/topics/sentinel # Note: Redis-sentinel website is not a stable version. Personally feel this is much better than Keepalived+redis to switch. Configuration environment: os:centos6.1 x86 *
Next, easy to build Redis. First, install your Ruby environment under Linux. Create a cluster folder. Mkdir-p rediscluster/7000/copy redis/redis.conf and redis/src/redis-server to 7000 directory to modify redis.conf configuration
Daemonize Yes
In addition to being used as cache data, Redis can also do these
Redis should be one of the most popular NoSQL databases at the moment. Redis is typically used as a cache component for caching data. However, in addition to caching data, there are
Download Redis and install
$ cd/home/redis
$ wget http://download.redis.io/releases/redis-3.0.2.tar.gz
$ tar xzf Redis-3.0.2.tar.gz
$ cd redis-3.0.2
$ make
$ make install
boot, in the Redis file below the src file
$ cd src
$ ./redis-server
or
The data structures supported in Redis are much more than memcached, such as basic strings, hash tables, lists, collections, sortable sets, as well as the various operations on the data structure, which is an important reason for Redis to be popular.
(i) string SDS
1) Sdsnew: Create a SDS containing the given C string
2) Sdsempty: Create an empty SDS that does not contain any content
3) Sdsfree: Release of the given SDS
4) Sdslen: Number of bytes of used space returned to SDS
5) Sdsavail: The
1. Preface
Redis is a common memory-based Key-value database that is more advanced than memcache and supports a variety of data structures, efficiently and quickly. Redis makes it easy to solve high-concurrency data access problems, and it is also
Redisthe installation1, First officer network Download Redis compressed package, address: Http://redis.io/download Download stable version, here use redis-3.2.8.tar.gz,yht002 on/home/dev under2, Decompression: TAR–ZXVF redis-3.2.8.tar.gz3. Go to
1: InstallationInstallation can be divided into single-version Redis and cluster version of Redis installation is relatively simple, self-Baidu can2: IntegrationPom file with Jedis dependencies, Spring creates Redis's application-resid configuration,
Built-in features (only part of the functionality is listed)1. User management: The user is the system operator, this function mainly completes the system User Configuration.2. Organization Management: Configuration system Organization (company,
One, Redis API supportRedis provides APIs for a variety of development languages to facilitate the development of language connections using Redis. HTTPS://redis.io/clients The official website provides API programs for different development
One: Download Redis :https://github.com/MSOpenTech/redis/releases.Download redis-x64-xxx.zip compressed package to C drive, for easy operation, after decompression, rename the folder to Redis.Second: Running the serviceOpen a cmd window using the
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