hiredis - 在 ubuntu 16.04 上安装hiredis
问题描述
我安装hiredis
在 Ubuntu 上。
我的redis.conf
文件有以下几行
#unixsocket /var/run/redis/redis.sock
#unixsocketperm 700
它不起作用。所以我将其更改为以下行:
unixsocket /tmp/redis.sock
unixsocketperm 755
而make test
对于hiredis,我收到以下错误
Testing against Unix socket connection (/tmp/redis.sock):
Connection error: No such file or directory
Makefile:195: recipe for target 'test' failed
make: *** [test] Error 1
解决方案
推荐阅读
- java - Android将日期格式从字符串更改为日期和时间分隔
- git - 如何摆脱我的 vscode 上显示的这些 5k 更改?此外,具有其中一些更改的 repo 不再存在
- elasticsearch - flink:处理背压(来源:kafka,接收器:elasticsearch)
- javascript - 为什么我的“for”循环按一半计算并在目标数以下完成 2?
- php - 使 PHP curl POST 到 nodeJS API 但无法读取响应数据
- c - 如何通过 Scanf 将二次方程作为输入?
- java - Spring 一对多总是空的
- mysql - #1064 - 您的 SQL 语法有错误。我的更新 SQL 语句中的错误
- python - 了解 min(points, key=lambda p: (px, py))
- javascript - 如何在 JavaScript 中利用全球化?