Redis Series One (Redis environment building)

Source: Internet
Author: User
Tags benchmark

Recent work requires Redis cache, because it is also the first time to find a lot of information on the Internet, in this record.

  Installing Redis

The system I am using is CentOS 6.6 and the installation steps are as follows:

1. Download the source code, unzip and compile the source code. (If there is no wget command first download yum install wget from yum)

$ wget http://download.redis.io/releases/redis-2.8.3.tar.gz

$ tar xzf redis-2.8.3.tar.gz

$ CD redis-2.8.3

$ make

  2. After compiling, in the SRC directory, there are four files

A.redis-server--redis-service side

B.redis-benchmark

C.REDIS-CLI--Redis client

d.redis.conf--Redis configuration file

Copy these files to the/usr/redis directory

Mkdir/usr/redis
CP Redis-server/usr/redis
CP Redis-benchmark/usr/redis
CP Redis-cli/usr/redis
CP Redis.conf/usr/redis
Cd/usr/redis

  3. Start the Redis service

./redis-server redis.conf

4. The client then tests if it can connect

./redis-cli

Redis> set Foo Bar
Ok
Redis> get foo
"Bar"

Redis Series One (Redis environment building)

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.