redis windows本地Setup

博客介绍了在Windows系统下操作Redis的步骤。首先从指定地址下载redis-64.3.0.503,解压后可启动redis,可通过命令或创建快捷方式启动,启动redis-server后,双击redis-cli.exe启动命令行界面并测试运行情况,还可修改配置文件调整参数。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1.下载redis-windows,这里使用redis-64.3.0.503,下载地址:https://github.com/ServiceStack/redis-windows/blob/master/downloads/redis-64.3.0.503.zip

2.解压后得到如下目录:

56895f801ff6c80570ec299f7d3f66494f1.jpg

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

或者创建快捷方式:

2bd1242f759365cc5d5068e50e7d8150c30.jpg

4. 启动redis-server后

acc757fc36f4562a8829e670cb136eb45c5.jpg

5. 双击redis-cli.exe启动Comand Line Interface 

edf0e39de4a09dac5c3a8ba3b89154f024d.jpg

6. 测试服务器运行情况

b7aa592c60c61c50cd18b7df85bb0a7e3aa.jpg

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


 

 

转载于:https://my.oschina.net/jerval/blog/1936174

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值