Last Updated: February 25, 2016
·
757
· sawanoboly

redis-server cmdline oneliner

"redis-server" has a small number of command line options.

cat <<-"EOL" | redis-server -
port 10001
pidfile "./tmp/pids/10001.pid"
dir ./db/10001
daemonize yes
EOL

$ redis-cli -h localhost -p 10001
redis localhost:10001>