Get the App
SLTechnology News&Howtos  ›  Database  › 

Detailed explanation of redis5.0.0 installation tutorial under Linux

Shulou Source: shulou.com Published: 2022-06-01 03:29:21 09月26日 Update

Linux redis5.0.0 installation, the tutorial is as follows:

1. Download it from the official website, then upload it to the server, and decompress it with tar-zxvf

two。 Enter redis

[root@localhost software] # cd redis-5.0.0/

3. Installation: make

(1) if prompted:: gcc: Command not found

To install gcc, direct command to install: yum-y install gcc (2) if prompted

Fatal error: jemalloc/jemalloc.h: No such file or directory

The reason is that jemalloc overloads the malloc and free functions of ANSI C under Linux. Solution: add parameters when make

Make MALLOC=libc

4.make install

5. Start

Redis-server redis.conf

Attention to redis cluster installation

1. The clusters above download 2.redis5.0 are

/ usr/local/software/redis-5.0.0/src/redis-cli-- cluster create 192.168.221.132Viru 7000 192.168.221.132Discovery 7002 192.168.221.132Vera 7003 192.168.221.132VlV 7003 192.168.221.132Rd 7004 192.168.221.132Rd 7006 192.168.221.132Rd 7007 192.168.221.132 Rd 7007 192.168.221.132 Rd 7008-cluster-replicas 2

Input: yes

Configuration successful

Summary

The above is the detailed explanation of the installation tutorial of redis5.0.0 under Linux introduced by the editor to you. I hope it will be helpful to you. If you have any questions, please leave me a message and the editor will reply to you in time. Thank you very much for your support to the website!

If you think this article is helpful to you, you are welcome to reprint it, please indicate the source, thank you!

Tags: Tutorials clusters help prompts success provenance functions methods reasons parameters commands servers questions websites support services input configuration Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Apple OPPO Reno MariaDB Redmi