Created
July 7, 2017 08:07
-
-
Save atton/1bfaeda2f8504d4ef42de6716ead4234 to your computer and use it in GitHub Desktop.
install-redis 3.2.9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Redis persistent key-value database | |
After=network.target | |
[Service] | |
ExecStart=/usr/local/bin/redis-server /etc/redis.conf --daemonize no | |
ExecStop=/usr/local/bin/redis-cli -p 6379 shutdown | |
[Install] | |
WantedBy=multi-user.target |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@atton-sandbox utils]# ./install_server.sh | |
Welcome to the redis service installer | |
This script will help you easily set up a running redis server | |
Please select the redis port for this instance: [6379] | |
Selecting default: 6379 | |
Please select the redis config file name [/etc/redis/6379.conf] | |
Selected default - /etc/redis/6379.conf | |
Please select the redis log file name [/var/log/redis_6379.log] | |
Selected default - /var/log/redis_6379.log | |
Please select the data directory for this instance [/var/lib/redis/6379] | |
Selected default - /var/lib/redis/6379 | |
Please select the redis executable path [] /usr/local/bin/ | |
Selected config: | |
Port : 6379 | |
Config file : /etc/redis/6379.conf | |
Log file : /var/log/redis_6379.log | |
Data dir : /var/lib/redis/6379 | |
Executable : /usr/local/bin/ | |
Cli Executable : /usr/local/redis-cli |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment