Redis充当中间缓存服务器,提升浏览访问速度,下载Window版redis安装包:Redis-x64-3.2.100.msi。
阿里云快速下载: https://zysd-shanghai.oss-cn-shanghai.aliyuncs.com/software/windows/redis/Redis-x64-3.2.100.msi
请下载Redis-x64-3.2.100.msi并安装
redis-server redis.windows.conf
redis-server redis.windows.conf
redis-server --service-install redis.windows-service.conf --loglevel verbose
从Redis安装目录中,编辑文件redis.windows.conf,找到requirepass,修改后请以redis.windows.conf文件启动
requirepass 密码
在redis的配置文件redis.conf中,找到bind localhost或bind 127.0.0.1注释掉,注释掉后,本机和局域网内的所有计算机都能访问;bind localhost 只能本机访问,局域网内计算机不能访问。
修改protected-mode yes 为no,修改完毕之后重新启动。
redis-server --service-start
redis-server --service-stop
redis-server --service-uninstall