HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

redis-server — Persistent key-value database. More information: <https://redis.io/tutorials/operate/redis-at-scale/

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandvaluekeydatabaseredis-serverclipersistentmore

Problem

How to use the redis-server command: Persistent key-value database. More information: <https://redis.io/tutorials/operate/redis-at-scale/talking-to-redis/configuring-a-redis-server/>.

Solution

redis-server — Persistent key-value database. More information: <https://redis.io/tutorials/operate/redis-at-scale/talking-to-redis/configuring-a-redis-server/>.

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


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


Start Redis server, using the specified port, as a background process:
redis-server --port {{port}} --daemonize yes


Start Redis server with a custom configuration file:
redis-server {{path/to/redis.conf}}


Start Redis server with verbose logging:
redis-server --loglevel {{warning|notice|verbose|debug}}

Code Snippets

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

redis-server

Start Redis server, using the default port, as a background process

redis-server --daemonize yes

Start Redis server, using the specified port, as a background process

redis-server --port {{port}} --daemonize yes

Start Redis server with a custom configuration file

redis-server {{path/to/redis.conf}}

Start Redis server with verbose logging

redis-server --loglevel {{warning|notice|verbose|debug}}

Context

tldr-pages: common/redis-server

Revisions (0)

No revisions yet.