Posts

Showing posts with the label redis

Deploy Redis on your VPS

Image
via: http://library.linode.com/databases/redis/debian-5-lenny Install Redis Prepare System for Redis Issue the following commands to update your system's package repositories and ensure that all installed packages are up to date: apt-get update apt-get upgrade Install required prerequisites with the following command: apt-get install build-essential This guide only provides instructions for installing and managing Redis itself. The application you deploy likely requires additional infrastructure, dependencies, and utilities. Download and Compile Software Begin the installation process by issuing the following sequence of commands to download the software and prepare it for use: cd /opt/ wget http://redis.googlecode.com/files/redis-2.0.4.tar.gz tar -zxvf /opt/redis-2.0.4.tar.gz mv /opt/redis-2.0.4/ /opt/redis/ cd /opt/redis make This will download and compile the 2.0.4 version of Redis. Check the Redis upstream project source to ensure that you are downloading the most up to date v...

Setting up redis on your VPS

Download, unzip and install redis: $ curl -O http://redis.googlecode.com/files/redis-2.2.2.tar.gz $ tar xzf redis-2.2.2.tar.gz $ cd redis-2.2.2 $ make then move the redis server launching script (redis-server) and the inbuilt redis client (redis-cli) to the /usr/bin/ folder so that these are accessible like terminal commands. $ mv redis-server /usr/bin/ $ mv redis-cli /usr/bin/ and you are set. Now if you plan to use redis with python you might also wanna install the redis-python library: $ easy_install redis