Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
90781dec
Commit
90781dec
authored
Jun 10, 2016
by
Michiel De Mey
Browse files
Added documentation for non-interactive install procedure
parent
af1e63c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
utils/install_server.sh
View file @
90781dec
...
@@ -25,9 +25,25 @@
...
@@ -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!"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment