“cluster_enabled yes”错误的指令或错误的参数数量REDIS

vmpqdwk3  于 7个月前  发布在  Redis
关注(0)|答案(1)|浏览(80)

你好在ubuntu当我试图运行这个redis语法收到以下错误:

davy@davy-Aspire-E5-476G:~/7002$ redis-server n2_redis.conf &
[1] 7118
davy@davy-Aspire-E5-476G:~/7002$ 
*** FATAL CONFIG FILE ERROR (Redis 6.0.16) ***
Reading the configuration file, at line 2
 >>> 'cluster_enabled yes'
Bad directive or wrong number of arguments
^C
[1]+  Exit 1                  redis-server n2_redis.conf

字符串
知道如何修复这些错误信息吗?

davy@davy-Aspire-E5-476G:~/7002$ head n2_redis.conf
  port 7002
  cluster_enabled yes
  cluster_config_file nodes.conf
  cluster_node_timeout 5000
  appendonly yes

pw9qyyiw

pw9qyyiw1#

如果你看Redis configuration file example,你应该有破折号-,而不是下划线_为您的所有配置:

port 7002
cluster-enabled yes
cluster-config-file nodes.conf
cluster-node-timeout 5000
appendonly yes

字符串

相关问题