Windows under Redis installation

Source: Internet
Author: User
Tags install redis

windows under Redis installation

(Environment is windows8.1,64 bit) (It is best to use administrator users to install the deployment, otherwise there will be some wonderful errors) (Windows only supports 64-bit, 32-bit do not toss ... )
First, download and install Redis:
        first of all, Redis officially does not support Windows, the original text is as follows:
  
 
  1. win64 Span class= "Typ" style= "color:teal;" >unofficial The Project does not directly support windows
  2. However the Open
  3. an Windows port targeting Win64.
        The main idea is that Redis officially does not support windows, but Microsoft Open Tech Group has developed a Win64 version on GitHub with the project address:Https://github.com/MSOpenTech/redis    then, open the link above and go to GitHub to download it. such as (when the first use of GitHub, dead or alive can not find the download place, depressed)
    
Finally, the decompression.


Second, start Redis
Basic configuration files that need to be changed:
  
 
  1. #端口号
  2. port 6369
  3. #日志级别
  4. loglevel debug
  5. #日志文件位置
  6. logfile ./log/log6369.log
  7. #dump文件位置
  8. dbfilename dump6369.rdb
  9. #工作目录,进过我的测试,对dump文件有效,对日志文件无效
  10. dir ./data/redis6369/
  11. #主从复制
  12. slaveof 127.0.0.1 6379

1. Command start (cut to Redis directory)
 
   
  
  1. F:\development\redis\redis3.0.501>redis-server redis6369.conf

2. As a system service Registration Services
 
   
  
  1. F:\development\redis\redis3.0.501>redis-server --service-install redis6369.conf --service-name redisServer6369
This is just a registered service, not yet started.
Start the service (requires Administrator privileges)Method One:
 
   
  
  1. F:\development\redis\redis3.0.501>sc start redisServer6369

Method Two:
 
   
  
  1. F : \development\redis\redis3 . 0.501 >

Delete Service (requires Administrator privileges)
 
   
  
  1. F:\development\redis\redis3.0.501>sc redisServer6369


third, encounter problems: Question one, online to see, I did not encounter, because it is a memory problem, first recorded: error:
 
   
  
  1. QForkMasterInit: system error caught. error code=0x000005af, message=VirtualAllocEx failed.: unknown error
Cause: Memory allocation problem (if your computer is tough enough, it may not be a problem)
Workaround: Method One: Add parameters when starting
Redis - Server Redis . Windows .  --200m
Method Two: Configuration file plus parameters
209715200

question two, when Redis is served as a system
 
    
  
  1. < Span class= "PLN" >f : \development\redis\redis3 0.501 \redis - server exe -- service - install F : \development\redis\redis3 0.501 \redis6369 conf -- service - name redisserver6369
Error:Could not open logfile./log/log6369.log: The system cannot find the path specified. Cause: The log file path and dump file path are configured because these paths are relative paths
WORKAROUND: You will need to run the disk segmentation to the Redis directory when registering the service.








From for notes (Wiz)

Windows under Redis installation

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.