redis配置文件说明以及密码登录

来源:互联网 发布:dreamhost java 编辑:程序博客网 时间:2024/05/22 10:35

网址:http://www.cnblogs.com/zhoujinyi/p/5565647.html     配置文件说明

网址:http://www.cnblogs.com/springlight/p/6288902.html  密码登录

配置文件启用密码后,运行redis-servier时候,需要指定配置文件

C:\Users\liu\Desktop\Redis-x64-3.2.100>redis-server.exe redis.windows.conf
                _._
           _.-``__ ''-._
      _.-``    `.  `_.  ''-._           Redis 3.2.100 (00000000/0) 64 bit
  .-`` .-```.  ```\/    _.,_ ''-._
 (    '      ,       .-`  | `,    )     Running in standalone mode
 |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
 |    `-._   `._    /     _.-'    |     PID: 5124
  `-._    `-._  `-./  _.-'    _.-'
 |`-._`-._    `-.__.-'    _.-'_.-'|
 |    `-._`-._        _.-'_.-'    |           http://redis.io
  `-._    `-._`-.__.-'_.-'    _.-'
 |`-._`-._    `-.__.-'    _.-'_.-'|
 |    `-._`-._        _.-'_.-'    |
  `-._    `-._`-.__.-'_.-'    _.-'
      `-._    `-.__.-'    _.-'
          `-._        _.-'
              `-.__.-'


[5124] 10 Aug 17:26:15.853 # Server started, Redis version 3.2.100
[5124] 10 Aug 17:26:15.853 * The server is now ready to accept connections on port 6379



如上运行所示,指令指定配置文件

C:\Users\liu\Desktop\Redis-x64-3.2.100>redis-server.exe redis.windows.conf