About Redis:
Redis is an open source API that is written in ANSI C, supports the web, can be persisted in memory, key-value databases, and provides multiple languages. From March 15, 2010 onwards, the development work of Redis is hosted by VMware.
Redis 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 hash (hash type). These data types support Push/pop, Add/remove, and intersection-set and difference sets, and richer operations, and these operations are atomic. Based on this, Redis supports sorting in a variety of different ways. As with memcached, data is cached in memory to ensure efficiency. The difference is that Redis periodically writes the updated data to disk or writes the modified operation to the appended record file, and Master-slave (Master-Slave) synchronization is implemented on this basis.
Installation Environment:
CentOS 6.5
Redis 2.8.13
Download the installation:
Download the file to the/opt/directory
wget http://download.redis.io/releases/redis-2.8.13.tar.gz
Unzip the file
Tar zxvf redis-2.8.13.tar.gz
Switch directories to the redis-2.8.13 directory
CD redis-2.8.13
Execute make command, output from the last few rows
Hint:to run ' make test ' was a good idea
MAKE[1]: Leaving directory '/OPT/REDIS-2.8.13/SRC '
Execute the Install command
Make install
Tips:
Install install install install install install install the install installmake[1]: Leaving Directory '/OPT/REDIS-2.8.13/SRC '
Follow the prompts to execute: CD src && make install
Tips:
Install install install install install install install the Install install instal
Follow the prompts: Make Test
Tips:
You need TCL 8.5 or newer on order to run the Redis testmake: * * * [Test] Error 1
Workaround reference: http://www.linuxfromscratch.org/blfs/view/cvs/general/tcl.html
can also be used: Yum install TCL command installation
Later, the search found that no installation required, directly to the SRC directory execution./redis-server can
You can use a similar./redis-server/path/to/redis.conf command to specify the configuration file;
Server started, Redis version 2.8.13
The server is now a ready-to-accept connections on port 6379
The service started successfully and the service has been listening for connection requests on port 6379.
You can use the built-in client connection redis:http://www.redis.cn/download.html
$ src/redis-cliredis> set foo barokredis> get foo "bar"
Precautions:
To access it remotely, you also need to turn on defense.
Do not use CTRL + C, which causes the program to exit.
Redis INS debugging