preface

Install Redis need to know which version you need, targeted installation, for example, if you need the Redis GEO feature, then Redis version should not be less than 3.2 version, because this feature is only available in 3.2 version. In addition, Redis agrees that versions with even numbers (i.e. the first decimal number) are stable versions (such as 2.8 and 3.0) and odd versions are unstable versions (such as 2.7 and 2.9). Stable versions are generally required in production environments.

Downloading the Installation package

Wget HTTP: / / http://download.redis.io/releases/redis-4.0.2.tar.gzCopy the code

Decompress the installation package and install it

Tar XZF redis-4.0.2.tar.gz CD redis-4.0.2 make make installCopy the code

Redis has no other external dependencies and the installation process is simple. After compiling, you can find several executables in the SRC folder of the Redis source directory. After installing, you can find the newly installed Redis executable in the /usr/local/bin directory. The diagram below:

Start and stop Redis

Start the Redis

Direct start

Run redis-server directly