Redisqfork position adjustment in Redis under Windows

Source: Internet
Author: User
Tags redis desktop manager install redis redis server

Redisqfork_4328.dat

Starting the Windows version of Redis creates a redisqfork file in the C drive, changing the location:

Under Redis.windows.conf, change the parameter heapdir to ./to indicate that it is in the current directory

# The Linux version of Redis relies on the system call Fork () to perform# point-in-time snapshots of the heap.  In addition to the AOF and RDB backup# mechanism, the Master-slave synchronization and clustering features is # dependent On this behavior of fork (). In order for the Windows version to # perform like the Linux version we had to simulate this aspect of the fork (). # Doing so M Eant moving the Redis heap into a memory mapped file, that can# is shared with a child process. # # * * * * * * There must is disk space available for the This file in order for Redis # to launch. The default configuration places this file in the local # AppData directory.  If you wish to move this file to another local disk,# use the HEAPDIR flag as described below.## the MAXHEAP flag controls The maximum size of this memory mapped file,# as well as the total usable space for the Redis heap. Running redis# without either maxheap or maxmemory would result in a memory mapped file # being created that's equal to th E sizeof physical memory. During # Fork () Operations the total page file commit would max out at around:## (size of physical memory) + (2 * size O  F maxheap) # # For instance, in a machine with 8GB of physical RAM, the max page file # commit with the default maxheap size would be (8) + (2*8) GB, or 24GB. the# default page file sizing of Windows would allow for this without have # to reconfigure the system. Larger heap sizes is possible, but the maximum# page file size'll has to be increased accordingly.# # the Redis heap m UST is larger than the value specified by the MaxMemory # flag, as the heap allocator have its own memory requirements and # Fragmentation of the heap is inevitable. If only the MaxMemory flag is # specified, Maxheap'll be set at 1.5*maxmemory. If the MAXHEAP flag is # specified along with maxmemory, the MAXHEAP flag would be automatically # increased if it is small ER than 1.5*maxmemory. # # Maxheap <bytes># The heap memory mapped file must reside on a local path For heap sharing # between processes to work. A UNC path would not be suffice here. For maximum # Performance This should is located on the fastest local drive available.# This value defaults to the local a Pplication Data folder (e.g.,# "%userprofile%\appdata\local"). Since This file can be very large, you# could wish to place the "a drive" other than the one of the operating system # is in Stalled on.## Note so must specify a directory here, not a file name.# heapdir <directory path (absolute or Relati  VE) >heapdir./

Start Redis server: Run.bat

Redis-server.exe  redis.windows.conf

Redis can be installed as a Windows service, booting from

Redis-server--service-install redis.windows.conf

However, after installation, Redis does not start, and the Start command is as follows:

Redis-server--service-start
Stop command:

Redis-server--service-stop
You can also install multiple instances

Redis-server--service-install–service-name Redisservice1–port 10001
Redis-server--service-start–service-name RedisService1
Redis-server--service-install–service-name Redisservice2–port 10002
Redis-server--service-start–service-name RedisService2
Redis-server--service-install–service-name Redisservice3–port 10003
Redis-server--service-start–service-name RedisService3
Uninstall command:

Redis-server--service-uninstall
Last hint: 2.8 version of the 32-bit system is not supported, 32-bit system to download the 2.6 version. Version 2.6 cannot be deployed as easily as above, it provides a program called Rediswatcher to run Redis Server,redis automatically restarts after stopping.

Also recommended is a Redis visual management tool: Redis Desktop Manager, the official website of the wall, you can download the v0.7.6 version in My network disk

Http://keenwon.com/1275.html

Redisqfork position adjustment in Redis under Windows

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.