Centos7yum install Redis detailed tutorial

There are two types of package management in Linux: RPM package management and YUM package management. In
this issue, we use YUM package management
. Benefits of applying yum: ①Automatically resolve package dependencies; ②Convenient package upgrades

One, first create a directory

Insert picture description here

Two, install wget

Enter the command: yum -y install wget
Insert picture description here

Three, install tcl

(1) Input #wget http://downloads.sourceforge.net/tcl/tcl8.6.1-src.tar.gz
Insert picture description here
(2) Input ls (display directory file) with src refers to the source code package
(3) Switch to the Unix directory and execute configure, the execution command is ./configure and press Enter, after execution, enter make Compile (it takes a long time), install after successful compilation, enter make install, tcl installation is successful.
Insert picture description here

Fourth, install redis

(1) Copy redis-3.0.0.tar.gz to the /usr/local/tools directory (here tools are created by yourself in step 1)
Insert picture description here
(2) Switch to the tools directory and decompress the files
Insert picture description here
(3) Go in
Insert picture description here
Go to the src source code to compile make, and perform make install after completion (4) At this moment, your redis has been installed successfully, enter ./redis-server and press Enter
Insert picture description here
(5) The posture of the successful person is displayed
Insert picture description here

Guess you like

Origin blog.csdn.net/javaScript1997/article/details/108013804