Redis--> Construction

Source: Internet
Author: User

Steps:

1 ' Decompression-->TAR-ZXVF redis-3.0.0.tar.gz-c/

2 ' Compiling-->make

3 ' Installation-->make prefix=/redis-3.0.0/6379 install

4 ' Copy-->CP redis.conf/redis-3.0.0/6379/

5 ' config-->redis.conf in daemonize Yes background run

6 ' Open service-->./bin/redis-server redis.conf

7 ' Test Client--->./BIN/REDIS-CLI

1 ' decompression-->tar-zxvf redis-3.0.0.tar.gz-c/

Unzip to the root directory

2 ' compiling-->make

Execute make command in makefile sibling directory

Before make, there are 2 executable files in SRC, and after make, there are 8 executable files in SRC;

The make command generates 6 executable files

3 ' Installation-->make prefix=/redis-3.0.0/6379 install

After installation, there is only one bin folder under the 6379 folder

4 ' Copy-->CP redis.conf/redis-3.0.0/6379/

Copy the configuration file under the 6379 folder

5 ' config-->redis.conf in daemonize Yes background run

-->vim redis.conf into the configuration;

-->:set Nu Display Line count

-->:i to modify

-->:qw Save and exit

Front Run-- analysis: Redis default daemonize is no, meaning, Redis-server will not be executed in the background, test redis-cli need to reopen a terminal terminal;

configured after -

6 ' Open service-->./bin/redis-server redis.conf

7 ' Test Client--->./bin/redis-cli

Redis--> Construction

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.