当前位置:网站首页>Windows安装Redis详细步骤
Windows安装Redis详细步骤
2022-07-03 09:00:00 【小胡今天有变强吗】
前言
有个需求需要在Windows上安装Redis,中间碰到一些错误,参考了网上的一些资料,进行总结记录,以免以后用到。
下载Windows版安装包
官网只提供linux版本的下载,但是github提供有Windows的版本。
github地址: https://github.com/MicrosoftArchive/redis/releases
选择 Redis-x64-3.0.504.zip 文件并下载,
安装Redis
安装非常简单,将上面下载的安装包解压到固定的目录,比如我解压到了 E:\App\Devlp\redis 目录之下。
添加环境变量,将reids安装目录添加到环境变量Path中。注意替换成自己的安装路径。
启动Redis测试
在安装目录下输入cmd并回车。输入
redis-server redis.windows.conf
并回车。出现如下界面说明安装成功。
Redis服务相关配置
- 修改redis.windows-service.conf配置文件,修改Redis的密码
将 requirepass:xxx 修改为requirepass :123456

2. 创建日志文件夹,否则启动redis服务时会报错。
redis.windows-service.conf配置文件中 logfile 设置的目录,并在redis-server.exe所在文件夹创建目录文件夹。
踩坑记录:注意一定要在安装目录下创建 Logs/redis_log.txt 文件,否则会导致Redis服务启动不起来。
设置服务
cmd 输入
redis-server --service-install redis.windows-service.conf --loglevel verbose
输入命令之后如果不报错,服务设置成功,右键计算机—管理----服务,可以看到已经有Redis服务了。
启动Redis服务
输入命令:
redis-server --service-start
出现下图所示,表示服务启动成功。
查看Redis服务,已经变成了正在运行。
常用的Redis服务命令
开启服务:redis-server --service-start
停止服务:redis-server --service-stop
卸载服务:redis-server --service-uninstall
边栏推荐
- What is an excellent fast development framework like?
- 【点云处理之论文狂读前沿版11】—— Unsupervised Point Cloud Pre-training via Occlusion Completion
- Build a solo blog from scratch
- Using variables in sed command
- LeetCode 513. 找树左下角的值
- Redis learning (I)
- [point cloud processing paper crazy reading classic version 8] - o-cnn: octree based revolutionary neural networks for 3D shape analysis
- [point cloud processing paper crazy reading frontier version 8] - pointview gcn: 3D shape classification with multi view point clouds
- LeetCode 241. Design priorities for operational expressions
- In the digital transformation, what problems will occur in enterprise equipment management? Jnpf may be the "optimal solution"
猜你喜欢

【Kotlin学习】运算符重载及其他约定——重载算术运算符、比较运算符、集合与区间的约定

Tree DP acwing 285 A dance without a boss

剑指 Offer II 091. 粉刷房子

LeetCode 241. 为运算表达式设计优先级

LeetCode 535. Encryption and decryption of tinyurl

【点云处理之论文狂读前沿版11】—— Unsupervised Point Cloud Pre-training via Occlusion Completion

LeetCode 508. 出现次数最多的子树元素和

LeetCode 715. Range module

Install third-party libraries such as Jieba under Anaconda pytorch

浅谈企业信息化建设
随机推荐
Vs2019 configuration opencv3 detailed graphic tutorial and implementation of test code
Tag paste operator (#)
Instant messaging IM is the countercurrent of the progress of the times? See what jnpf says
What is an excellent fast development framework like?
LeetCode 535. TinyURL 的加密与解密
Go language - IO project
Low code momentum, this information management system development artifact, you deserve it!
【点云处理之论文狂读前沿版13】—— GAPNet: Graph Attention based Point Neural Network for Exploiting Local Feature
dried food! What problems will the intelligent management of retail industry encounter? It is enough to understand this article
Too many open files solution
LeetCode 515. Find the maximum value in each tree row
Introduction to the usage of getopts in shell
LeetCode 871. Minimum refueling times
Solve POM in idea Comment top line problem in XML file
[point cloud processing paper crazy reading frontier version 8] - pointview gcn: 3D shape classification with multi view point clouds
【点云处理之论文狂读经典版10】—— PointCNN: Convolution On X-Transformed Points
传统企业数字化转型需要经过哪几个阶段?
2022-2-14 learning xiangniuke project - Session Management
Digital management medium + low code, jnpf opens a new engine for enterprise digital transformation
LeetCode 30. Concatenate substrings of all words