preface

“Like” is a habit.

Click like collection, brilliant life.

Click on [wechat search public number: Programming back pot man] to prevent getting lost.

Compile redis source code

The command

[root @ emooco redis - 6.0.6] # makeCopy the code

The illustration

Insert a picture description here

why

Install redis 6, GCC 5.3 or above, centos6.6 install 4.4.7 by default; 4.8.5 is installed by default in centos7.5.1804.

Viewing the GCC Version

The command

[root @ emooco redis - 6.0.6] # GCC - vCopy the code

The illustration

Insert a picture description here

Upgrading GCC

The command

[root@emooco redis-6.0.6]# yum -y install centos-release-scl && yum -y install devtoolset-9-gcc devtoolset-9-gcc-c++ devtoolset-9-binutils && scl enable devtoolset-9 bash
Copy the code

The illustration

Insert a picture description here

View the current GCC version

The command

[root@emooco bin]# gcc -v
Copy the code

The illustration

Insert a picture description here

Recompile source code

The command

[root @ emooco redis - 6.0.6] # makeCopy the code

The illustration

Insert a picture description here

Thank you for your thumb up

  • It is not easy to create, and we welcome your likes, comments and concerns
  • Your likes, comments and followings are the biggest support and encouragement for me
  • Is my motivation to continue to create high-quality blogs ==!! = =