赞
踩
1.下载安装Redis的Windows版本
Redis官网:https://redis.io/
下载地址:https://github.com/MicrosoftArchive/redis/releases
2.安装成功之后命令行到Redis的目录执行:
redis-server.exe redis.windows.conf
redis-cli.exe -h 127.0.0.1 -p 6379 //连接
3.配置公网访问:
修改redis.windows.conf文件中的
bind 127.0.0.1 用#注释掉
protected-mode yes 改为 protected-mode no
4.重启Redis服务
redis-cli -h 127.0.0.1 -p 6379 shutdown //关闭
redis-server.exe redis.windows.conf
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。