Linux redis3.2.11 stand-alone installation

Since it is used for daily debugging of the virtual machine at home, so stand-alone deployment, go to the official website to download redis3.2.11.tar.gz, decompress and install

Switch to the redis installation directory and execute the command make

If you encounter an error:

The new machine does not have the make command installed. Execute the command:

1.yum install gdb

2.yum -y install gcc

3.yum -y install gcc-c++

After installing all the environmental dependencies required for redis compilation, execute make in the installation directory. If you still encounter an error:

 

After Redis version 2.4, jemalloc is used for memory management by default, because jemalloc has been proven to solve fragmentation problems (memory fragmentation problems) better than libc. But if you don't have jemalloc but only libc, when make makes an error, you can add the following parameter:

After compiling correctly, the output will be displayed as shown in the following figure:

Redis has been installed successfully, just execute stand-alone startup

Guess you like

Origin blog.csdn.net/qq_25062671/article/details/118098104