have been known to use Redis, never to build, yesterday had time, on their own set up a test, according to the following steps step-by-step, you can build up.
(1) Redis installation, installation reprint address:
First, Redis introduction
Redis is one of the most popular NoSQL systems, and it is a key-value storage system. Similar to memcache, but largely compensates for the lack of memcache, which supports a relatively large number of stored value types,
First of all, this is done purely for fun.
Usually we use Redis mainly to store some data, because the data is in memory, so the query updates quickly. We can also use the PUB/SUB function to implement message publishing/subscription. But today we
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: An error that may occur
After a, simple to build Redis. First, install your Ruby environment under Linux. Create a clustered folder. Mkdir-p rediscluster/7000/replication redis/redis.conf and Redis/src/redis-server to 7000 directory to modify redis.conf
To connect the Redis cache steps via the Jedis client:
1. Add Jar Package:
POM Coordinates:
redis.clients
jedis
2.7.0
The jar package is as follows: Commons-pool2-2.3.jar Jedis-2.7.0.jar2. Single Instance connection
To connect the Redis service
Redis-cluster
#关闭RDB防止fork进程的内存溢出问题
Save ""
Appendonly=yes
#防止某个节点挂掉, the whole cluster hangs off the question
Cluster-require-full-coverage No
#设置最大内存
MaxMemory
11453246122
11453246122
28991029248
27*1024*1024*1024
#日志
LogFile "./redis.log"
Transferred from: http://blog.csdn.net/gebitan505/article/details/17076333
1. Access to Redis source code
Http://redis.io
2. Unzip, set permissions
3.make & make install (optional, if install is executed, REDIS-SERVER,REDIS-CLI will be generated
Installing a third-party module RedisImport RedisI. Connect to the database, and change the operation and additions.1. Connecting data(1). host Required Server IP(2). Port number Default thing 6379, can not fill in, if changed to other port number,
1. Redis and memcache all store data in memory, which is the memory database. But memcache can also be used to cache other things, such as films, videos and so on;2, Redis not only supports simple k/v type data, but also provides storage of data
You need to remove the value from the original Redis key stored in the project startup, so use Scan_iter to facilitate the relevant key and delete it.There are two performance issues to be aware of1. Scan_iter's fuzzy matching filter should be
(Turn) Original: http://www.cnblogs.com/M-LittleBird/p/5902850.htmlTo make Redis run under PHP, add the extension file to the Ext extension folder under PHP files
Php_igbinary.dll
Php_redis.dll
Modify php.ini configuration items at
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