valkey-server
[
/path/to/valkey.conf ] [ OPTIONS ]
[-
]
valkey-server
-v
|
--version
valkey-server
-h
|
--help
valkey-server
--test-memory
megabytes
valkey-server
--check-system
valkey-server
is the Valkey database program.
What is Valkey? See Introduction.
The configuration file and the configuration directives are
documented in Configuration. Use
-
to read configuration from stdin.
Each of the configuration directives can be provided on the command
line with its name prefixed by two dashes. For example,
--port 6380
on the command line is equivalent to
port 6380
in the config file.
Additional options:
-v
,
--version
-h
,
--help
--test-memory
megabytes--check-sytem
--sentinel
Run the server with default config:
valkey-server
Read configuration from stdin:
echo 'maxmemory 128mb' | valkey-server -
Start with a configuration file:
valkey-server /etc/valkey/6379.conf
Start with configuration as command line options:
valkey-server --port 7777
Start as a replica of another Valkey server that can accessed at 127.0.0.1:8888:
valkey-server --port 7777 --replicaof 127.0.0.1 8888
Start with a config file, then some additional options overriding the ones in the config file, and finally some more options from stdin:
valkey-server /etc/myvalkey.conf --loglevel verbose -
Start with a config file and some additional options overriding the ones in the config file:
valkey-server /etc/myvalkey.conf --loglevel verbose
Valkey documentation, Introduction, Configuration, Installation, valkey-cli