Skip to content

Instantly share code, notes, and snippets.

@druzn3k
Forked from nilakanta/install-node-redis.sh
Created November 23, 2012 16:19
Show Gist options
  • Save druzn3k/4136323 to your computer and use it in GitHub Desktop.
Save druzn3k/4136323 to your computer and use it in GitHub Desktop.
Install Node.js & Redis on ubuntu
#!/bin/sh
##############################################################
#
# Rock-Solid Node.js Platform on Ubuntu (http://apptob.org/)
# Auto-config by apptob.org
# Author: Ruslan Khissamov, email: rrkhissamov@gmail.com
# GitHub: https://github.com/rushis
#
##############################################################
# Update System
echo "System Update"r
apt-get -y update
echo "Update completed"
# Install help app
apt-get -y install libssl-dev git-core pkg-config build-essential curl gcc g++ checkinstall
# Download & Unpack Node.js - v. 0.8.7
echo "Download Node.js - v. 0.8.7"
mkdir /tmp/node-install
cd /tmp/node-install
wget http://nodejs.org/dist/v0.8.7/node-v0.8.7.tar.gz
tar -zxf node-v0.8.7.tar.gz
echo "Node.js download & unpack completed"
# Install Node.js
echo Install Node.js
cd node-v0.8.7
./configure && make && checkinstall --install=yes --pkgname=nodejs --pkgversion "0.8.7" --default
echo "Node.js install completed"
# Install Redis
echo "Install Redis"
cd /tmp
mkdir redis && cd redis
wget http://redis.googlecode.com/files/redis-2.4.16.tar.gz
tar -zxf redis-2.4.16.tar.gz
cd redis-2.4.16
make && make install
wget https://github.com/ijonas/dotfiles/raw/master/etc/init.d/redis-server
wget https://github.com/ijonas/dotfiles/raw/master/etc/redis.conf
mv redis-server /etc/init.d/redis-server
chmod +x /etc/init.d/redis-server
mv redis.conf /etc/redis.conf
useradd redis
mkdir -p /var/lib/redis
mkdir -p /var/log/redis
chown redis.redis /var/lib/redis
chown redis.redis /var/log/redis
update-rc.d redis-server defaults
echo 'Redis install completed. Run "sudo /etc/init.d/redis-server start"'
@rufuscoder
Copy link

Thanks for the tutorial. By any chance do you know how to install phantomjs om ubuntu
I am want to install yeoman and that what you need to install.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment