博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Redis在windows下的配置
阅读量:6717 次
发布时间:2019-06-25

本文共 4533 字,大约阅读时间需要 15 分钟。

原文:

Redis在windows下的配置(在windows-64下安装redis,请参考微软redis的github:https://github.com/MSOpenTech/redis/releases)下面是windows32的配置下载地址http://files.cnblogs.com/files/cuiwenyuan/Redis-3.2.100-Windows-32.zip假设安装目录为E:\wrcold520\Redis-3.2.100-Windows-32\Redis 1、启动没有参数配置的Redis:  (1)双击redis-server.exe  (2)在cmd命令窗口下运行redis-server或者redis-server.exe          # 示例:      Microsoft Windows [版本 6.1.7601]      版权所有 (c) 2009 Microsoft Corporation。保留所有权利。      E:\wrcold520\Redis-3.2.100-Windows-32\Redis>redis-server      [6788] 10 Feb 13:47:38.750 # Warning: no config file specified, using the defaul      t config. In order to specify a config file use redis-server /path/to/redis.conf      [6788] 10 Feb 13:47:38.753 # Warning: 32 bit instance detected but no memory lim      it set. Setting 3 GB maxmemory limit with 'noeviction' policy now.                      _._                 _.-``__ ''-._            _.-``    `.  `_.  ''-._           Redis 3.0.504 (00000000/0) 32 bit        .-`` .-```.  ```\/    _.,_ ''-._       (    '      ,       .-`  | `,    )     Running in standalone mode       |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379       |    `-._   `._    /     _.-'    |     PID: 6788        `-._    `-._  `-./  _.-'    _.-'       |`-._`-._    `-.__.-'    _.-'_.-'|       |    `-._`-._        _.-'_.-'    |           http://redis.io        `-._    `-._`-.__.-'_.-'    _.-'       |`-._`-._    `-.__.-'    _.-'_.-'|       |    `-._`-._        _.-'_.-'    |        `-._    `-._`-.__.-'_.-'    _.-'            `-._    `-.__.-'    _.-'                `-._        _.-'                    `-.__.-'      [6788] 10 Feb 13:47:38.755 # Server started, Redis version 3.0.504      [6788] 10 Feb 13:47:38.755 * DB loaded from disk: 0.000 seconds      [6788] 10 Feb 13:47:38.756 * The server is now ready to accept connections on po      rt 63792、带配置文件启动Redis      在cmd命令窗口下运行:redis-server redis.windows.conf或者redis-server.exe redis.windows.conf            # 示例:      Microsoft Windows [版本 6.1.7601]      版权所有 (c) 2009 Microsoft Corporation。保留所有权利。      E:\wrcold520\Redis-3.2.100-Windows-32\Redis>redis-server redis.windows.conf      [7540] 10 Feb 13:43:07.046 # Warning: 32 bit instance detected but no memory lim      it set. Setting 3 GB maxmemory limit with 'noeviction' policy now.                      _._                 _.-``__ ''-._            _.-``    `.  `_.  ''-._           Redis 3.0.504 (00000000/0) 32 bit        .-`` .-```.  ```\/    _.,_ ''-._       (    '      ,       .-`  | `,    )     Running in standalone mode       |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379       |    `-._   `._    /     _.-'    |     PID: 7540        `-._    `-._  `-./  _.-'    _.-'       |`-._`-._    `-.__.-'    _.-'_.-'|       |    `-._`-._        _.-'_.-'    |           http://redis.io        `-._    `-._`-.__.-'_.-'    _.-'       |`-._`-._    `-.__.-'    _.-'_.-'|       |    `-._`-._        _.-'_.-'    |        `-._    `-._`-.__.-'_.-'    _.-'            `-._    `-.__.-'    _.-'                `-._        _.-'                    `-.__.-'      [7540] 10 Feb 13:43:07.047 # Server started, Redis version 3.0.504      [7540] 10 Feb 13:43:07.048 * DB loaded from disk: 0.000 seconds      [7540] 10 Feb 13:43:07.048 * The server is now ready to accept connections on po      rt 63793、将redis加入windows服务  (1)在cmd命令窗口下运行:redis-server.exe --service-install redis.windows.conf --loglevel verbose    ### 示例:    Microsoft Windows [版本 6.1.7601]    版权所有 (c) 2009 Microsoft Corporation。保留所有权利。    E:\wrcold520\Redis-3.2.100-Windows-32\Redis>redis-server.exe --service-install redis.windows.conf --loglevel verbose    [7776] 10 Feb 13:56:21.950 # Granting read/write access to 'NT AUTHORITY\Network    Service' on: "E:\wrcold520\Redis-3.2.100-Windows-32\Redis" "E:\wrcold520\Redis-3    .2.100-Windows-32\Redis\"    [7776] 10 Feb 13:56:21.950 # Redis successfully installed as a service.  (2)启动redis服务    在cmd命令窗口下运行:redis-server --service-start       ### 示例:      E:\wrcold520\Redis-3.2.100-Windows-32\Redis>redis-server --service-start      [6780] 10 Feb 14:05:18.046 # Redis service successfully started.   (3)关闭redis服务    在cmd命令窗口下运行:redis-server --service-stop       ### 示例:      E:\wrcold520\Redis-3.2.100-Windows-32\Redis>redis-server --service-stop      [1660] 10 Feb 14:05:28.098 # Redis service successfully stopped.4、移除redis的windows服务  在cmd命令窗口下运行:redis-server --service-uninstall     ### 示例:    E:\wrcold520\Redis-3.2.100-Windows-32\Redis>redis-server --service-uninstall    [4744] 10 Feb 13:59:18.735 # Redis service successfully uninstalled.

 

转载地址:http://yyymo.baihongyu.com/

你可能感兴趣的文章
js打字效果
查看>>
用铁路局来比喻流程管理系统,工作流引擎,表单.
查看>>
jQuery的发展史,你知道吗?
查看>>
JavaWeb:实现文件上传
查看>>
mysql: unknown variable 'character_set_client=UTF8'
查看>>
zabbix3.0监控的配置
查看>>
SSL/TLS部署最佳实践
查看>>
Screen字符桌面共享
查看>>
2015-08-22 linux命令练习3
查看>>
我的hosts文件
查看>>
Google偏爱HTTPS SSL加密链接网站
查看>>
MapReduce作业运行第三方配置文件的共享方法
查看>>
PHP 用户注册
查看>>
26_事务语法
查看>>
Linux常见命令详解1
查看>>
idea:安装配置Git和Github或码云
查看>>
获取各种编码的识别符
查看>>
搭建dnsmasq服务器,局域网内部解析
查看>>
关于 PChar 串的结束 - 给 "厨师" 的回复
查看>>
day3-Nfs
查看>>