Linux installation and testing of Redis

Redis

Install redis for Linux

Linux version redis compression package

Link: https://pan.baidu.com/s/1QkNQWaejcoCaIOqX2L7jjQ?pwd=rjgh
Extraction code: rjgh

1. Installation and testing

1: Install the wget environment

yum -y install wget

2: Upload the redis compressed package

insert image description here
3: Decompress the redis compressed package

tar -zxvf (redis压缩包名称)

3: Execute the command (install the c language environment)

yum install gcc

4: After decompression, enter the redis root directory and execute make compilation

make

5: After the compilation is successful, enter: make install

make install

6: Start redis (enter the src in the redis directory and execute the following command) Use the redis.conf file to start

[External link picture transfer failed, the source site may have an anti-theft link mechanism, it is recommended to save the picture and upload it directly (img-TJGwZxWP-1681028599888) (C:\Users\lps\AppData\Roaming\Typora\typora-user-images\ image-20230407104905378.png)]

./redis-server ../redis.conf

[External link picture transfer failed, the source site may have an anti-theft link mechanism, it is recommended to save the picture and upload it directly (img-PLiwpHeF-1681028599889) (C:\Users\lps\AppData\Roaming\Typora\typora-user-images\ image-20230407105100612.png)]

Guess you like

Origin blog.csdn.net/lps12345666/article/details/130043839