我想在 Mac(macOS 10.15.4,内核:Darwin 19.4.0)上使用 TLS 和 Redis。这是我根据文档尝试的:
export BUILD_TLS=yes
mkdir redis && cd redis
curl -O http://download.redis.io/redis-stable.tar.gz
tar xzvf redis-stable.tar.gz
cd redis-stable
make BUILD_TLS=yes
make test
sudo make install
Run Code Online (Sandbox Code Playgroud)
所有测试都通过了,但是当我运行时:
% redis-server --tls-cluster yes
Run Code Online (Sandbox Code Playgroud)
我得到错误:
*** FATAL CONFIG FILE ERROR (Redis 6.0.4) *** Reading the configuration file, at line 2
>>> 'tls-cluster "yes"'
Bad directive or wrong number of arguments
Run Code Online (Sandbox Code Playgroud)