Skip to content

Instantly share code, notes, and snippets.

@darrenterhune
Last active August 29, 2015 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darrenterhune/e5daffef5372f4c8790a to your computer and use it in GitHub Desktop.
Save darrenterhune/e5daffef5372f4c8790a to your computer and use it in GitHub Desktop.
Redis install
# redis install
sudo apt-get install tcl8.5
wget http://download.redis.io/redis-stable.tar.gz
tar xvzf redis-stable.tar.gz
cd redis-stable/
make
make test
sudo make install
sudo mkdir /etc/redis
sudo mkdir /var/redis
sudo cp utils/redis_init_script /etc/init.d/redis_6379
# change the port to match default if needed
sudo nano /etc/init.d/redis_6379
sudo cp redis.conf /etc/redis/6379.conf
sudo mkdir /var/redis/6379
# Edit the configuration file, making sure to perform the following changes:
sudo nano /etc/redis/6379.conf
# Set daemonize to yes (by default it is set to no).
# Set the pidfile to /var/run/redis_6379.pid (modify the port if needed).
# Change the port accordingly. In our example it is not needed as the default port is already 6379.
# Set your preferred loglevel.
# Set the logfile to /var/log/redis_6379.log
# Set the dir to /var/redis/6379 (very important step!)
sudo update-rc.d redis_6379 defaults
sudo service redis_6379 start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment