初学redis之windows服务配置与启动
2016-12-20 00:00
441 查看
摘要: 介绍在windows 64上安装并启动redis服务的步骤
初学redis首先要配置好服务,
redis在Linux上的安装只要按照官方指导来,很快很简单。
下面来谈谈redis在windows上的安装。
官网虽然没给redis的windows安装包,但是给了redis在github上的链接:
https://github.com/MSOpenTech/redis
不过这个只支持windows 64版本,下面有这么一段话:
We officially support the 64-bit version only. Although you can build the 32-bit version from source if desired.
我们只支持64位的版本。如果需要,你可以从资源创建32位的版本。
你可以随便选择github上任意redis版本,clone或download & unzip ,根据文档指导进行安装。
这里我提供了一个更为简单的下载和安装指导,百度网盘链接:
windows 64位:
http://pan.baidu.com/s/1dEDE9PJ
windows 32位:
http://pan.baidu.com/s/1qYhKvHq
下载解压,文件目录如下:
按下win+R,cmd +enter进入命令提示符界面,之后进入到当前文件目录,键入
redis-server.exe redis.windows.conf
出现上面这种情况,根据提示可以得知,是因为系统的虚存不满足redis的maxheap,有两种方法处理:
① 修改系统虚存
② 修改redis maxheap
下面来设置redis maxheap,打开redis解压目录下redis配置文件 redis.windows.conf
查找
# maxheap <bytes>
在下面添加一行
maxheap 1024000000
保存退出.
之后再键入
redis-server.exe redis.windows.conf
可以看到服务启动成功,监听端口6379.
初学redis首先要配置好服务,
redis在Linux上的安装只要按照官方指导来,很快很简单。
下面来谈谈redis在windows上的安装。
官网虽然没给redis的windows安装包,但是给了redis在github上的链接:
https://github.com/MSOpenTech/redis
不过这个只支持windows 64版本,下面有这么一段话:
We officially support the 64-bit version only. Although you can build the 32-bit version from source if desired.
我们只支持64位的版本。如果需要,你可以从资源创建32位的版本。
你可以随便选择github上任意redis版本,clone或download & unzip ,根据文档指导进行安装。
这里我提供了一个更为简单的下载和安装指导,百度网盘链接:
windows 64位:
http://pan.baidu.com/s/1dEDE9PJ
windows 32位:
http://pan.baidu.com/s/1qYhKvHq
下载解压,文件目录如下:
按下win+R,cmd +enter进入命令提示符界面,之后进入到当前文件目录,键入
redis-server.exe redis.windows.conf
出现上面这种情况,根据提示可以得知,是因为系统的虚存不满足redis的maxheap,有两种方法处理:
① 修改系统虚存
② 修改redis maxheap
下面来设置redis maxheap,打开redis解压目录下redis配置文件 redis.windows.conf
查找
# maxheap <bytes>
在下面添加一行
maxheap 1024000000
保存退出.
之后再键入
redis-server.exe redis.windows.conf
可以看到服务启动成功,监听端口6379.
相关文章推荐
- 初学redis之windows服务配置与启动
- JBoss 7 配置成windows启动服务
- Redis作为多个Windows服务运行配置方法
- Redis在windows下以服务的形式启动
- windows版redis报错:本地计算机上的Redis服务启动后停止
- Redis 3.x安装并配置开机自启动服务
- 配置 Windows 的 TFTP 服务从网络启动 WinPE
- tomcat启动配置到windows服务中
- Redis作为多个Windows服务运行配置方法
- windows 下配置 启动 MySQL ,服务无法启动 服务没有报告任何错误
- Windows 用bat脚本带配置启动redis,并用vb脚本使其在后台运行。
- C# Windows服务启动错误1083配置成在该可执行程序中运行的这个服务不能执行该服务
- windows下配置启动多个mysql服务
- Redis 作为多个Windows服务运行配置方法
- Redis启动多个实例,并以windows服务方式运行
- 请启动windows零配置(wzc)服务
- windows下配置jboss服务-启动和关闭
- 以windows服务的形式启动redis
- windows下配置redis集群,启动节点报错:createing server TCP listening socket *:7000:listen:Unknown error
- (二)Redis的安装及配置(3)---注册服务与自动启动