I’m using the windows redis port form Microsoft (GitHub).
How can I run multiple instances of redis on the same machine?
Can I use the same binaries and configure a port per instance or do I need to install the binaries (in a different directory) for each instance?
Ok this is how it works:
Command:
sc create Redis2 obj= "NT AUTHORITY\NetworkService" start= auto DisplayName= "Redis2" binPath= "\"C:\Program Files\Redis\redis-server.exe\" --service-run \"C:\Program Files\Redis\redis.windows-service-new.conf\"
You can run the same executable multiple times starting redis-server
with different configurations, either using a file or by giving parameters. Obviously, the ports must be also different.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With