Installation of Redis under Linux

Source: Internet
Author: User
Tags benchmark download redis

———— Reprint at Daybreak

First, login to the Redis official website Download redis-3.0.7.tar.gz

Second, upload to your own server via FTP tool

#还可以通过wget http://download.redis.io/releases/redis-3.0.7.tar.gz

Third, TAR-ZXVF redis-3.0.7.tar.gz decompression

CD redis-3.0.7; Since no redundant code has been developed, it is not necessary to perform the./configure configuration and execute the make compile command directly.

Five, make finished but change to src directory, CD src; this directory has redis-server, REDIS-CLI, Redis-benchmark, redis-check-aof, redis-check-dump these files

Where Redis-server is the starting Redis script file, REDIS-CLI is a terminal action script, Redis-benchmark is a stress test script, redis-check-aof, Redis-check-dump the script file that detects the backup file.

VI. In the SRC directory under the redis-3.0.7 folder directory, execute the following command to create the running directory for Redis

Mkdir/usr/local/redis

CP Redis-cli Redis-server/usr/local/redis

Cd.. /go back to the redis-3.0.7 directory

CP Redis.conf/usr/local/redis

Cd/usr/loca/redis

./redis-server start Redis (this boot is the front-start mode)

If you want to configure the back-end startup mode

Vim redis.conf

/daemonize no find daemonize No to change no to Yes, it's simple.

Later in this directory, you start from a new Redis

./redis-server redis.conf

ps-a | grep Redis to see if the Redis process is started. It's OK!

The./REDIS-CLI will be able to enter the Redis command-line mode.

Installation of Redis under Linux

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.