zl程序教程

您现在的位置是:首页 >  数据库

当前栏目

编译redis报错/deps/hiredis/libhiredis.a解决

Redis 解决 报错 编译
2023-09-11 14:18:20 时间

在编译redis3.2.9时报错

cc: ../deps/hiredis/libhiredis.a: No such file or directory
cc: ../deps/lua/src/liblua.a: No such file or directory
cc: ../deps/geohash-int/geohash.o: No such file or directory
cc: ../deps/geohash-int/geohash_helper.o: No such file or directory
make[1]: * [redis-server] Error 1
make[1]: Leaving directory `/usr/local/src/redis-3.2.9/src
make: * [all] Error 2

解决办法

进入源码包目录下的deps目录中执行

make geohash-int hiredis jemalloc linenoise lua

然后再进行make编译就可以了
Redis突然报错 NOAUTH Authentication required 2016年年底有个项目需要用到redis,当时比较忙没有在新机器安装redis,就把我博客那台服务器上的redis地址给了技术的同事。第二天开发的同事告诉我redis连不上了,提示NOAUTH Authentication required,看了redis配置文件并没有设置密码,而且前一天使用的时候正常,我这台服务器也不会有人动。当时并没有深入分析,重启了redis后可以正常使用了。
麦老师 原3dmgame(三大妈)游戏网运维总监,原阿里云栖论坛版主,wlnmp一键安装包作者,多年互联网行业从业经验,专注于Linux平台的系统维护、DevOps运维实践、监控平台实践及应用部署。我的博客https://blog.whsir.com