Skip to content

Instantly share code, notes, and snippets.

@TJkrusinski
Last active December 15, 2015 00:08
Show Gist options
  • Save TJkrusinski/5170436 to your computer and use it in GitHub Desktop.
Save TJkrusinski/5170436 to your computer and use it in GitHub Desktop.
Deploy node and redis on ubuntu.
#!/bin/sh
# Update System
echo 'System Update'
apt-get -y update
echo 'Update completed'
# Install help app
apt-get -y install libssl-dev pkg-config build-essential git curl gcc g++ checkinstall
# Download & Unpack Node.js - v. 0.10.0
echo 'Download Node.js - v. 0.10.0'
mkdir /tmp/node-install
cd /tmp/node-install
wget http://nodejs.org/dist/v0.10.0/node-v0.10.0.tar.gz
tar -zxf node-v0.10.0.tar.gz
echo 'Node.js download & unpack completed'
# Install Node.js
echo 'Install Node.js'
cd node-v0.10.0
./configure && make && checkinstall --install=yes --pkgname=nodejs --pkgversion "0.10.0" --default
echo 'Node.js install completed'
# Install MongoDB
echo 'Install MongoDB'
apt-get -y install mongodb-10gen
echo 'MongoDB install completed.'
# Install Redis
echo 'Install Redis'
cd /tmp
wget http://download.redis.io/redis-stable.tar.gz
tar xvzf redis-stable.tar.gz
cd redis-stable
make
cd src
sudo cp redis-server /usr/local/bin/
sudo cp redis-cli /usr/local/bin/
echo 'Redis install completed. '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment