Redis First article: Redis installation detailed

Source: Internet
Author: User
Tags benchmark redis redis server

Redis Installation

1, download, decompression and installation:

$ wget http://download.redis.io/releases/redis-2.8.5.tar.gz
$ tar xzf redis-2.8.5.tar.gz
$ cd redis-2.8.5
$ make

The compiled executables are in the SRC directory, respectively, Redis-server, REDIS-CLI, Redis-benchmark, and redis-stat, and they function as follows:

The Redis-server:redis server's daemon launcher Redis-cli:redis the command-line operations tool. Of course, you can also use Telnet to operate the Redis-benchmark:redis Performance test tool based on its plain text protocol, and test the read-write Performance Redis-stat:redis State Detection Tool Redis your system and your configuration. Can detect Redis current state parameters and latency conditions

2, after we successfully installed the Redis, we can run the Redis directly redis-server, at this time it is in accordance with the default configuration to run (the default configuration is not even background run). We want Redis to run according to our requirements, we need to modify the configuration file, open redis.conf modify parameters. According to their own situation adjustment, I change here daemonize no for daemonize yes, let it run for the background.

Start Redis:

Src/redis-server redis.conf

Detect whether to open:

Ps-ef | grep Redis or NETSTAT-TAPN

3, use the REDIS-CLI Operation tool Test to see

$SRC/redis-cli set MyKey ' testdate '
$src/redis-cli get MyKey

4, easy to use can put Redis-server and redis-cli under/bin.

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.