Reputation: 1099
I'm trying to run Redis in Windows Server 2008 https://msopentech.com/opentech-projects/redis/
I have installed it in several machines and all of them work ok. I've also tried using many logins: an administrator account, Local System, Network Service and none of them work.
The exact message Im getting is:
The Redis service on Local Computer started and then stopped.
Some services stop automatically if they are not in use by other services or programs.
I've also tried to start the service from the command line but all I get is:
[3472] 27 Jul 17:51:45.375 # Redis service failed to start.
There are no logs in the EventViewer.
Upvotes: 3
Views: 5959
Reputation: 1099
Redis wasn't starting due to storage problems as Komrade P pointed in the comments. I only had 16GB available in the HD and 8GB of memory. According to the Redis, with 8GB of memory, you will need 24GB of free space in disk.
I changed the values of maxheap, heapdir and maxmemory to make it work. Basically my problem is explained in the configuration file:
# *** There must be disk space available for 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.
# For instance, on a machine with 8GB of physical RAM, the max page file
# commit with the default maxheap size will be (8)+(2*8) GB , or 24GB. The
# default page file sizing of Windows will allow for this without having
# to reconfigure the system. Larger heap sizes are possible, but the maximum
# page file size will have to be increased accordingly.
Upvotes: 7