Article Directory
Error screenshot
Add the Redis-Cell module to the redis.conf configuration file, and the following error will be reported after startup.
After startup, I used ps -ef | grep redis and I didn't see redis startup successfully.
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.
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.