服务端修改redis.windows.conf文件
1. 修改L56为:bind 192.168.2.221
192.168.2.221是本机IP地址
2. 修改L443为:requirepass !QAZ2wsx
!QAZ2wsx 是密码
测试:
启动服务端
1. cd redis目录
2. redis-server.exe redis.windows.conf
启动客户端
1. cd redis目录
2. redis-cli.exe -h 192.168.2.221 -p 6379
3. auth !QAZ2wsx
4. set username root
5. get username
本文介绍如何配置Redis服务端的redis.windows.conf文件,包括设置本机IP地址和密码,并提供启动服务端和客户端的步骤及认证过程。
2222

被折叠的 条评论
为什么被折叠?



