-
-
Save druzn3k/4136323 to your computer and use it in GitHub Desktop.
Install Node.js & 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 | |
############################################################## | |
# | |
# 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"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.