redis的配置问题

错误信息:Invalid argument during startup: unknown conf file parameter :  requirepass

redis本身的配置文件:

# use a very strong password otherwise it will be very easy to break.
# requirepass test
# Command renaming.

出现上面那种错误信息是因为你只去掉了一个#,但是#后面的空格没有去掉,类似:

# use a very strong password otherwise it will be very easy to break.
 requirepass test
# Command renaming.

只要把剩余的那个空格去掉就可以了。

原文地址:https://www.cnblogs.com/kasher/p/7280422.html