修改redis.conf
logfile "D:/dev-tool/redis/redis-2.6/log"
启动程序
redis-server.exe redis.conf
报错入下
D:\dev-tool\redis\redis-2.6>redis-server.exe redis.conf
*** FATAL CONFIG FILE ERROR ***
Reading the configuration file, at line 70
>>> 'logfile "D:/dev-tool/redis/redis-2.6/log"'
Can't open the log file: Permission denied
于是在D:\dev-tool\redis\redis-2.6\log下手动新建一个文件redis.log 并修改redis.conf
logfile "D:/dev-tool/redis/redis-2.6/log/redis.log"
重启redis-server.exe redis.conf
启动OK
启动cli客户端
redis 127.0.0.1:6379> ping
(error) ERR operation not permitted
redis 127.0.0.1:6379>
redis 127.0.0.1:6379>
redis 127.0.0.1:6379>
redis 127.0.0.1:6379>
redis 127.0.0.1:6379> auth xxxpassword
OK
redis 127.0.0.1:6379>