首页 > 解决方案 > 在 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

标签: hiredis

解决方案


推荐阅读