Last active
December 15, 2015 00:08
-
-
Save TJkrusinski/5170436 to your computer and use it in GitHub Desktop.
Deploy node and redis on ubuntu.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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