Add Redis-Cell module to Redis, configuration file error version `GLIBC_2.18` not found

Error screenshot

Add the Redis-Cell module to the redis.conf configuration file, and the following error will be reported after startup.
Insert picture description here
After startup, I used ps -ef | grep redis and I didn't see redis startup successfully.
Insert picture description here
Insert picture description here
Finally, the log of redis.log was configured and found that the file CLIBC_2.18 was missing. After a series of downloads, this problem was solved.
Insert picture description here

surroundings

redis5.0.7 version

CentOS7

How to solve

1. Download the glibc file

// 下载 glibc 压缩包
wget http://ftp.gnu.org/gnu/glibc/glibc-2.18.tar.gz 
// 解压 glibc 压缩包
tar -zxvf glibc-2.18.tar.gz
// 进入解压后的目录
cd glibc-2.18
// 创建编译目录
mkdir build
// 进入到创建好的目录
cd build/
// 编译、安装
../configure --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin

// 这一步比较慢
make -j 8

make install

Test again to start successfully

redis-server redis.conf

ps -ef | grep redis

# 即可看到redis启动成功

At last

The blogger is an active user. If you encounter a similar problem and need to ask for help, you can leave a message or send a private message to me, and I will reply you when I see it.

Guess you like

Origin blog.csdn.net/qq_43647359/article/details/105864565