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:
Source: http://blog.chinaunix.net/uid-22312037-id-3484071.html
Today, calm down, the end of the Redis boot start regret. For me, this is a work of no small size, if it is to be fully understood. The difficulties are as follows:
1---Redis startup
Package Com.alex.xiyoubang;
Import Java.util.Set;
Import Redis.clients.jedis.Jedis;
public class Jedisset {static Jedis Jedis = new Jedis ("192.168.1.171", 6379);
public static void Main (string[] args) {System.out.println ("==set==")
Official Information https://redis.io/topics/cluster-tutorial,
First download redis,http://download.redis.io/releases/redis-4.0.6.tar.gz
Tar zxvf redis-4.0.6.tar.gz
CD redis-4.0.6
Make
Make error GCC diagnostic not allowed inside functions, check
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"
Redis provides two persistence mechanisms for RDB and AOF: The RDB saves a snapshot of the database (snapshot) to disk in a binary way. AOF, in the form of protocol text, logs all commands (and their parameters) that have been written to the
Redis-dump Command installation environment refer to the link address:http://blog.51cto.com/wujianwei/2105124Redis Database backup script:[Email protected] ~]# cat/data/scripts/dump_redisdata.sh#!/bin/bashsource
One: Learn about NoSQL1: Introduction: The full name of NoSQL is not-only SQL, the concept was raised early on, in 09 when the comparison of fire. NoSQL refers to a non-relational database, and we often use relational databases. Like our usual mysql,
Redis is a key-value storage system, similar to memcached, which supports storing more value types, including string (string), list (linked list), set (set), Zset (ordered collection), GEO (coordinate), and hash ( Hash type). These operations
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
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
Unordered Collection SaddThe set set is directly de-Xiao and only outputs the heheSadd names3 Xiao Xiao hehe heheGets all the values of the collection Names3, and the collection cannot get the value as a slice because it is unorderedSmembers
Unordered Collection SaddThe set set is directly de-Xiao and only outputs the heheSadd names3 Xiao Xiao hehe heheGets all the values of the collection Names3, and the collection cannot get the value as a slice because it is
Store data in the list advanced (left-forward)Lpush names A B C D EStore Data LIFO (right-forward) in the listRpush names G P H KTo view the data in the list:Lrange names 0 (starting from 0)-1Slice:Lrange names start end (start end stands for
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,
1. Download the installation files for Redis under WindowsHTTPS://github.com/microsoftarchive/redis/releasesMSI fileHttps://github-production-release-asset-2e65be.s3.amazonaws.com/3402186/bb1d10fc-3fac-11e6-8dc7-a51af1d6f36f?
(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
Reference Document: Https://www.cnblogs.com/Leo_wl/p/6392196.html?utm_source=itdadao&utm_medium=referralThe Redis number is now popular with NoSQL databases, and many programming platforms use it as the preferred distributed cache, and then we show
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.