Redis INS debugging

Source: Internet
Author: User
Tags redis version

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

Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.