LinuxCommandLibrary

redis-server

Persistent key-value database.

TLDR

Start Redis server, using the default port (6379), and write logs to stdout

$ redis-server
copy


Start Redis server, using the default port, as a background process
$ redis-server --daemonize yes
copy


Start Redis server, using the specified port, as a background process
$ redis-server --port [port] --daemonize yes
copy


Start Redis server with a custom configuration file
$ redis-server [path/to/redis.conf]
copy


Start Redis server with verbose logging
$ redis-server --loglevel [warning|notice|verbose|debug]
copy

Copied to clipboard