valkey-server - Man Page
Valkey Server
Synopsis
valkey-server
[ /path/to/valkey.conf ] [ Options ] [-
]
valkey-server --test-memory
megabytes
valkey-server --check-system
Description
valkey-server
is the Valkey database program.
What is Valkey? See valkey-introduction(7).
Options
The configuration file and the configuration directives are documented in valkey.conf(5). 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
Output version and exit.
- -h, ā--help
Output help and exit.
- --test-memory megabytes
Run a memory test and exit.
- --check-sytem
Output some operating system properties relevant for running Valkey and exit.
- --sentinel
Start in valkey-sentinel(1) mode
Examples
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
See Also
valkey(7), valkey-introduction(7), valkey.conf(5), valkey-installation(7), valkey-cli(1)
Referenced By
valkey(7), valkey-benchmark(1).