Skip to content

Instantly share code, notes, and snippets.

@bendangelo
Created June 23, 2012 14:54
Show Gist options
  • Save bendangelo/2978560 to your computer and use it in GitHub Desktop.
Save bendangelo/2978560 to your computer and use it in GitHub Desktop.
Install Stable Redis on Ubuntu
# curl -L https://raw.github.com/gist/2978560 | bash
# /etc/apt/sources.list.d/dotdeb.org.list
sudo -s
echo -e "deb http://packages.dotdeb.org stable all\ndeb-src http://packages.dotdeb.org stable all" > /etc/apt/sources.list.d/dotdeb.org.list
wget -q http://www.dotdeb.org/dotdeb.gpg -O- | apt-key add -
apt-get update
apt-get install redis-server
# wget -O redis.conf gist.github.com/raw/2978930
# mv redis.conf /etc/redis.conf
#logs redis user
# mkdir -p /var/lib/redis
# mkdir -p /var/log/redis
# useradd --system --home-dir /var/lib/redis redis
# chown redis.redis /var/lib/redis
# chown redis.redis /var/log/redis
# update-rc.d redis-server defaults
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment