The Setup program starts by adding the program's startup script to the/ETC/INIT.D directory, or writing the startup path to the/etc/rc.d/rc.local file.set MySQL boot upCp/usr/local/mysql/support-files/mysql.server /etc/init.d/mysql --add MySQL
About Redis is not introduced, the installation process reference: Http://www.cnblogs.com/silent2012/p/3499654.html.#!/bin/bash# defining the installation directory export Redis_home=/home/test/redis# Creating the installation directorymkdir$REDIS
1. Introduction to RedisRedis is a key-value storage system. Similar to memcached, it supports storing more value types, including string (string), list (linked list), set (set), Zset (sorted set-ordered collection), and HASHS (hash type). These
The downloaded version of Windows is redis-2.0.2, extracted to the D disk:D:\redis-2.0.2In this directory, the following files are available:redis-server.exe: Service Program redis-check-dump.exe: Local Database checkredis-check-aof.exe: Update log
CSDN download Rediswatcher, run installwatcher.msi, installed by default in C:\Program Files (x86) \rediswatcher, Modify watcher.conf1 # required ExePath and exename is combined to form full path2 ExePath D:\Demos\redisdev\redis3 exename
Learning Objectives 2 hours a day, 13 days for you to learn redis. This course is intended for beginners of redis and even students who have never heard of anything about redis. The course details what redis is and why redis is used. Combined with
Expire key seconds
ForKeySet the survival time whenKeyExpired (the survival time is0Is automatically deleted.
In redisKeyIt is called volatile ).
You can use the del command to delete the entire lifecycle.KeyOr overwrite by the set and GetSet
1. introduction to hash expression: ========================================================== ==== key field value =========================================== ========== front wheel ---> Foxconn rear wheel ---> Apple BMW: windscreen ---> jiadobao
1. single Value assignment: Set a 100 [Assign multiple values: mset a 100 B 200 C 300] 2. single value: Get a [multiple values: mget a B C] 3. the number incrementing by incr A is + 1 on the basis of a, that is, 101 is returned. If the pre-value is 0
Koa is a new-generation framework
NPM install Koa-redis
The Code is as follows:
var koa = require(‘koa‘);var http = require(‘http‘);var session = require(‘koa-sess‘);var redisStore = require(‘koa-redis‘);var app = koa();app.name =
1. lpush num 0 1 2 3 4 5 6 7 8 9 10 in turn push from left to 0-102. rpush num 0 1 2 3 4 5 6 7 8 9 10 in turn push from the right to 0-103. lrnage num 0-1 show all data in the num list result: 10 9 8 7 6 5 4 3 2 1 0 1 2 4 5 6 7 8 9 104. lpop num is
Used_cpu_sys and used_cpu_user in redis.
The info command output result of redis contains the following four indicators. The redis official website provides the following explanation, but still does not understand what it means.
used_cpu_sys:
An ordered set seems to be a bigger operation because a thing called "molecule" is actually like a common data. It just adds a pure digital identifier to the data, use these identifiers to obtain the desired data! The numerator can be an integer or
In normal work, you need to perform operations on the redis database as needed.
Can refer to redis official website http://redis.io/commands for detailed understanding
1. Select to switch Databases
redis 127.0.0.1:6379[1]> HELP SELECT SELECT index
By default, the redis program is installed in the/usr/local/redis directory;
Configuration File:/usr/local/redis. conf. The default port configured in this configuration file is 6379;
Redis startup command path:/usr/local/bin/redis-server.
You
Redis master-slave replication is actually very simple, and even easier than MySQL configuration, because basically no operation is required on the master server.
We open different ports on the same server for testing (the installation part is not
String is the simplest type. A key corresponds to a value. The string type is binary secure. Redis string can contain any data, such as JPG images or serialized objects.OperationSetSet the value corresponding to the key to a value of the string
Link to this article: http://blog.csdn.net/u012150179/article/details/41077851i. redis
Redis is an in-memory database that persists on disk. The data model is key-value, but cannot different kind of values are supported: strings, lists, sets,
The cacti template of percona is still very handsome, but for multiple instances such as redis and memercache, only the default 6379 or one other port can be monitored (in short, all instances cannot be monitored ), this is a pity. To achieve
Redis Master/Slave Configuration
MASTER: 192.168.209.18
SLAVE: 192.168.209.19
MASTER:
Tar xzvf redis-2.8.12.tar.gz
Music redis-2.8.12/usr/local/redis
CD/usr/local/redis
Make
CP redis. conf redis. conf. Bak
Mkdir/data1/redis_6379
VI redis.
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.