mirror of
http://github.com/valkey-io/valkey
synced 2024-11-22 18:54:58 +00:00
Added documentation for non-interactive install procedure
This commit is contained in:
parent
af1e63c365
commit
90781dec56
@ -25,9 +25,25 @@
|
|||||||
#
|
#
|
||||||
################################################################################
|
################################################################################
|
||||||
#
|
#
|
||||||
# Interactive service installer for redis server
|
# Service installer for redis server, runs interactively by default.
|
||||||
# this generates a redis config file and an /etc/init.d script, and installs them
|
#
|
||||||
# this scripts should be run as root
|
# To run this script non-interactively (for automation/provisioning purposes),
|
||||||
|
# feed the variables into the script. Any missing variables will be prompted!
|
||||||
|
# Tip: Environment variables also support command substitution (see REDIS_EXECUTABLE)
|
||||||
|
#
|
||||||
|
# Example:
|
||||||
|
#
|
||||||
|
# sudo REDIS_PORT=1234 \
|
||||||
|
# REDIS_CONFIG_FILE=/etc/redis/1234.conf \
|
||||||
|
# REDIS_LOG_FILE=/var/log/redis_1234.log \
|
||||||
|
# REDIS_DATA_DIR=/var/lib/redis/1234 \
|
||||||
|
# REDIS_EXECUTABLE=`command -v redis-server` ./utils/install_server.sh
|
||||||
|
#
|
||||||
|
# This generates a redis config file and an /etc/init.d script, and installs them.
|
||||||
|
#
|
||||||
|
# /!\ This script should be run as root
|
||||||
|
#
|
||||||
|
################################################################################
|
||||||
|
|
||||||
die () {
|
die () {
|
||||||
echo "ERROR: $1. Aborting!"
|
echo "ERROR: $1. Aborting!"
|
||||||
|
Loading…
Reference in New Issue
Block a user