Redis simple entry installation

1 A brief introduction to redis

 You can open this website: https://db-engines.com/en/ , there are some rankings of all databases and an introduction to each database

1.1 Open the website to see the ranking of all databases, including the ranking of redis

1.2 Key/value storage, redis ranks first

1.3  There are many redis features introduced in https://db-engines.com/en/system/Redis, which are not introduced here.

English website: https://redis.io/

Chinese website: http://www.redis.cn/

2 Installation

2.1 Create /home/software directory, download to this directory, download the stable version of 5.0.5 here

wget http://download.redis.io/releases/redis-5.0.5.tar.gz

2.2   Unzip tar xf redis-5.0.5.tar.gz

2.3 Enter the directory  cd /home/software/redis-5.0.5, learn to read README.md, there are a lot of introductions, you can read this file if you don't know how to install it.

2.4 make

2.5 Install to the specified directory m ake install PREFIX=/usr/local/redis5

2.6 Configure vi   /etc/profile, add environment variables, and take effect source /etc/profile 

2.7 Install redis as a system service, enter the utils directory, execute: ./install_server.sh, install the first instance, the default port is 6379.

2.8 In this way, you can install multiple redis instances (processes), and you can fill in the port yourself.

You can directly operate redis through the service redis_6379 start/stop/status command

2.9 ps -ef|grep redis view process

Guess you like

Origin blog.csdn.net/huzhiliayanghao/article/details/107119988