Redis常见问题汇总(持续更新)
1)输入make命令出现
cd src && make all
make[1]: Entering directory `/root/redis-5.0.5/src‘
CC adlist.o
/bin/sh: cc: command not found
make[1]: *** [adlist.o] Error 127
make[1]: Leaving directory `/root/redis-5.0.5/src‘
make: *** [all] Error 2
未安装gcc,使用命令安装gcc:yum install gcc
2)出现
cd src && make all
make[1]: Entering directory `/root/redis-5.0.5/src‘
CC adlist.o
In file included from adlist.c:34:
zmalloc.h:50:31: error: jemalloc/jemalloc.h: No such file or directory
zmalloc.h:55:2: error: #error "Newer version of jemalloc required"
make[1]: *** [adlist.o] Error 1
make[1]: Leaving directory `/root/redis-5.0.5/src‘
make: *** [all] Error 2
将make改为make MALLOC=libc
3)Redis连接时报错:Could not connect to Redis at 127.0.0.1:6379: Connection refused
4)如果出现(error)NOAUTH Authentication required,是由于设置了密码。
使用>auth 密码