1.下载redis-windows,这里使用redis-64.3.0.503,下载地址:https://github.com/ServiceStack/redis-windows/blob/master/downloads/redis-64.3.0.503.zip
2.解压后得到如下目录:
redis-benchmark.exe:性能测试,用以模拟同时由N个客户端发送M个 SETs/GETs 查询 (类似于 Apache 的ab 工具).
redis-check-aof.exe:更新日志检查
redis-check-dump.exe:本地数据库检查
redis-cli.exe:客户端(Command Line Interface)
redis-server.exe:服务器端
--from web
3.启动redis。在上面的目录内运行命令
redis-server.exe redis.windows.conf
或者创建快捷方式:
4. 启动redis-server后
5. 双击redis-cli.exe启动Comand Line Interface
6. 测试服务器运行情况
7. 如果需要修改部分配置参数,修改redis.windows.conf配置文件即可。如修改端口,logfile,密码认证等。
# Accept connections on the specified port, default is 6379.
# If port 0 is specified Redis will not listen on a TCP socket.
port 6379
# Specify the log file name. Also 'stdout' can be used to force
# Redis to log on the standard output.
logfile ""
################################## SECURITY ###################################
# Require clients to issue AUTH <PASSWORD> before processing any other
# commands. This might be useful in environments in which you do not trust
# others with access to the host running redis-server.
#
# This should stay commented out for backward compatibility and because most
# people do not need auth (e.g. they run their own servers).
#
# Warning: since Redis is pretty fast an outside user can try up to
# 150k passwords per second against a good box. This means that you should
# use a very strong password otherwise it will be very easy to break.
#
# requirepass foobared