With nginx you can start the server, change the config file, and then run:
nginx -t
Which will tell you if the config file is valid or not before you try to restart nginx. Is there similar functionality for redis-server?
Edit (after deagh's answer)
I tried redis-server --help
but this didn't suggest it was possible… but there may still be a way that's just not documented.
Best Answer
Give
redis-server --help
a chance and you will seeUsage: ./redis-server [/path/to/redis.conf] ./redis-server - (read config from stdin) ./redis-server --test-memory <megabytes>
There is now such option (unfortunately).