1. Create script directory scripts, place script in this directoryThe script is as follows:
#!/bin/bashRedispath= "/usr/local/bin/redis-cli"Host= "127.0.0.1"Port= "6379"Redis_pa= "$REDISPATH-H $HOST-P $PORT Info"if [[$# = 1]];thenCase is
# Redis Sample configuration file# Note Unit problem: When you need to set the memory size, you can use a common format like 1k, 5GB, 4M:## 1k => 1000 bytes# 1kb => 1024 bytes# 1m => 1000000 bytes# 1mb => 1024*1024 bytes# 1g => 1000000000 bytes# 1GB
1, set the redis.conf daemonize to Yes, to ensure that the daemon open;
Find #requirepass foorbared This line, replace it directly, change to requirepass new password
2, write the boot from the start script
Vi/etc/init.d/redis
The
Install Redis
(1) Download Redis
wget http://redis.googlecode.com/files/redis-2.2.11.tar.gz
tar xzvf redis-2.2.11.tar.gz
(2) Compile and install Redis
Make && make install
(3) Copy and modify the configuration file
An ordered set of types
Ordered set type, you should know from the name, in fact, is in the collection type added an order just. The ordered set type in the Redis, which is actually associated with a fraction for each element in the collection type,
Reference:
Http://redis.io/topics/cluster-tutorial (mainly creating a Redis cluster using the Create-cluster script part)
https://ruby.taobao.org/
Install an unfamiliar software to see the Install,readme before, this is the custom, production
This article mainly introduces the use of Redis to achieve SQL scaling, including the lock and time series to improve the performance of traditional databases, the need for friends can refer to.
Ease of line Competition
We used the sentry.buffers
Original address: http://blog.jobbole.com/99567/Requirements background: There is a call to the statistical log storage and statistical requirements, the requirements stored in MySQL, storage data peaks can reach tens of millions of million, the
Source: Punctuation Character
Links: http://www.biaodianfu.com/redis-vs-memcached.html
The Salvatore Sanfilippo, the author of Redis, has previously compared these two memory-based data storage systems:
Redis supports server-side
Installation of 1.memcacheHttp://www.cnblogs.com/zgx/archive/2011/08/10/2134097.htmlMemcached-d-M 10-u root-l 192.168.15.128-p 12000-c 256-p/tmp/memcached.pidparameter description: -D is to start a daemon -m is the amount of memory allocated
Redis is an open source, C-based, memory-based, and persistent, high-performance NoSQL database, and it also provides APIs in multiple languages. Recently, Redis 3.0 after 6 RC version, its official version finally released. The most important
1. What is Redis?Redis is a very fast non-relational database, stores a mapping of keys to five different types of values.(Redis is a very fast, non-relational database, a nosql one that stores data in the form of key-value pairs, with 5 types of
Redis can store mappings that can store keys between 5 different data structure types.The five structure types are: string (string), list, set (set), hash (hash), Zset (ordered collection).1. String type The string data structure is a simple
When it comes to redis migration, it is common to use an RDB or aof to do an automatic reload to the target library method in the main library. However, the problem of this method is that there is no guarantee that the source node data and the
Redis configuration file Parameter description:1. Redis is not running as a daemon by default and can be modified by this configuration item, enabling the daemon with YesDaemonize No2. When Redis is running as a daemon, Redis writes the PID to
Cause: When the client goes to the Redis server to get the connection (the code describes the leased object Borrowobject), there is no connection available in the pool, that is, all connections in the pool are occupied, and when the timeout is not
String[HTML]View PlainCopy
1, String
Common commands:
In addition to operations such as GET, set, INCR, Decr mget, Redis also provides the following actions:
Get string length
Append content to a string
Set and get a
Stackexchange is produced by StackOverflow and is a. NET package for Redis, and is used by more and more. NET developers in the project.The vast majority of developers who used Servicestack have gradually turned around, because SS is no longer open
1. Install redis on the vps host① I use the LNMP package, which comes with redis. Execute./redis. sh to automatically install and add it to self-start② Install redis-server separately# Apt-get install redis-serverStart redis-server and add 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.