This is the sixth day of my participation in the August More text Challenge. For details, see:August is more challenging

About the author: Wu Kong, 8 years of experience in first-line Internet development and architecture, explains distribution, architecture design, Java core technology with stories. “JVM performance optimization combat” column author, open source “Spring Cloud combat PassJava” project, public number: Wukong chat architecture. This article is available at www.passjava.cn

The start-up scheme of Redis in production environment

Example Test the function of the Redis command

Installing TCL Tools

When Redis is installed on Linux, it depends on the TCL tool, so you need to install the TCL tool first.

To obtain the installation package, run the wget command to obtain the installation package from the official website, or copy the installation package provided below.

Wget way:

Wget HTTP: / / http://downloads.sourceforge.net/tcl/tcl8.6.1-src.tar.gzCopy the code

Copy mode:

TCL installation package download address: link: https://pan.baidu.com/s/1P01t_s_-KRopS2q2NBeYdA extracted code: 6666Copy the code

First copy the TCL installation package to /usr/local of eshop-cache01 on your machine.

Decompress the TCL installation package:

The tar - XZVF tcl8.6.1 - SRC. Tar. GzCopy the code

Installing TCL Tools

cd  /usr/local/tcl8.6.1/ Unix /./configure make && make installCopy the code

After the execution, it is shown as the figure below:

Install Redis

The installation package used in this article is 3.0+, provide the installation package address:

Link: https://pan.baidu.com/s/1WiFB98PLmW-ZCRDVL9DnlA extracted code: 6666Copy the code

Other installation packages can be downloaded from the official website.

Official website address:

https://redis.io/download
Copy the code

Copy the downloaded installation package to /usr/local on the centos machine, and then decompress it.

The tar - ZXVF redis - 3.2.8. Tar. GzcdRedis-3.2.8 make && make install maketest
Copy the code

The Redis installation is complete. Next, startup and testing of Redis.