hackpar / redis

Automatically exported from code.google.com/p/redis
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Provide command line option for setting redis-server tcp port #512

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Since it is recomended to start another instance of redis-server for different 
needs, it would be convenient to have command line option to start redis 
listening on given port. 

If that option is supplied on command line, it should override port specified 
in config file. 

That way one could start multiple redis servers on different ports, with same 
conf file.

Original issue reported on code.google.com by dmaj...@gmail.com on 6 Apr 2011 at 9:53

GoogleCodeExporter commented 8 years ago
echo "port 9999" | ./redis-server -

Cheers,
Salvatore

Original comment by anti...@gmail.com on 6 Apr 2011 at 9:56

GoogleCodeExporter commented 8 years ago
It works on Windows without quotes

echo port 6380 | redis-server.exe - 

It still looks too complicated. I'll think of something.

Thank you.

Original comment by dmaj...@gmail.com on 6 Apr 2011 at 10:14