Last active
January 24, 2017 14:21
-
-
Save kucaahbe/4692307 to your computer and use it in GitHub Desktop.
install redis on debian stable
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
add dotdeb repository: http://www.dotdeb.org/instructions/ | |
sudo aptitude install redis-server # for stable | |
sudo aptitude -t stable install redis-server # for testing |
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
wget redis | |
cd redis | |
make | |
# make test # sudo aptitude install sudo aptitude install tcl8.5 in order to run tests | |
sudo make install # /target -> /usr/local/bin | |
sudo mkdir /etc/redis/ | |
sudo cp redis.conf /etc/redis/6379.conf | |
sudo cp utils/redis_init_script /etc/init.d/redis-server | |
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: skeleton | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Example initscript | |
# Description: This file should be used to construct scripts to be | |
# placed in /etc/init.d. | |
### END INIT INFO | |
sudo update-rc.d redis-server defaults | |
sudo update-rc.d redis-server enable | |
TODO | |
daemonize redis | |
check pid and port in config file and init script | |
create user | |
logging |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment