Uebermorgen Posted January 3, 2015 Report Share Posted January 3, 2015 So I'm running a normal server and a test-server. my testserver has different port, different DB (1) and different Instance (NA124) If one redis is started, I cant manage to start the second redis because its closing instantly! anyone know why? Link to comment Share on other sites More sharing options...
0 nedfox Posted January 3, 2015 Report Share Posted January 3, 2015 Put a PAUSE at the last line of the start-redis.cmd and see if you get an error. Link to comment Share on other sites More sharing options...
0 Uebermorgen Posted January 3, 2015 Author Report Share Posted January 3, 2015 There are 2 windows popping up. One is closing and the second one only says "press any key.." Link to comment Share on other sites More sharing options...
0 nedfox Posted January 3, 2015 Report Share Posted January 3, 2015 Meh, then redis itself generates an error. Can you start it on a commandline (dos box) ? Link to comment Share on other sites More sharing options...
0 nedfox Posted January 3, 2015 Report Share Posted January 3, 2015 Remember you need to start the 2nd instance with a different conf file. Link to comment Share on other sites More sharing options...
0 Uebermorgen Posted January 3, 2015 Author Report Share Posted January 3, 2015 what do you mean by different conf file? I changed the pw. Link to comment Share on other sites More sharing options...
0 nedfox Posted January 3, 2015 Report Share Posted January 3, 2015 redis1.conf : bind 127.0.0.1 maxmemory 4gb save 900 1 save 300 10 save 60 1000 requirepass Yourpass port 6379 redis2.conf bind 127.0.0.1 maxmemory 4gb save 900 1 save 300 10 save 60 1000 requirepass Yourpass port 6380 Then launch redis twice from a batchfile : start-redis.cmd : START redis-server.exe redis1.conf START redis-server.exe redis2.conf Also, make sure you have plenty of drive-space to accommodate 2 swapfiles, and plenty of memory . If you're on a rented server you might run out of mem FAST. Uebermorgen 1 Link to comment Share on other sites More sharing options...
0 Uebermorgen Posted January 3, 2015 Author Report Share Posted January 3, 2015 oh, its working now. I didnt have the line "port" in both files. Thank you! Link to comment Share on other sites More sharing options...
0 nedfox Posted January 3, 2015 Report Share Posted January 3, 2015 Cheers !!! Give me a LIKE :) I like that. *FYI : Every program using TCP or UDP must use different posts if it's a "listener". Your 2nd redis quit because the port was already in use. Link to comment Share on other sites More sharing options...
Question
Uebermorgen
So I'm running a normal server and a test-server.
my testserver has different port, different DB (1) and different Instance (NA124)
If one redis is started, I cant manage to start the second redis because its closing instantly!
anyone know why?
Link to comment
Share on other sites
8 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now