Last active
March 7, 2018 14:55
-
-
Save nilakanta/3446168 to your computer and use it in GitHub Desktop.
Install Node.js & Redis on ubuntu
This file contains hidden or 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
# Install git | |
sudo apt-get install git-core | |
# Install Node.js | |
sudo apt-get install -y libssl-dev pkg-config build-essential curl gcc g++ checkinstall | |
sudo apt-get install python-software-properties | |
sudo add-apt-repository ppa:chris-lea/node.js | |
sudo apt-get update | |
sudo apt-get install nodejs | |
# Install Redis | |
http://redis.io/topics/quickstart | |
#!/bin/sh | |
#!/bin/sh | |
############################################################## | |
# | |
# Rock-Solid Node.js Platform on Ubuntu | |
# Auto-config by apptob.org | |
# Author: Ruslan Khissamov, email: [email protected] | |
# GitHub: https://github.com/rushis | |
# | |
############################################################## | |
# 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 curl gcc g++ checkinstall | |
# Download & Unpack Node.js - v. 0.8.18 | |
echo 'Download Node.js - v. 0.8.18' | |
mkdir /tmp/node-install | |
cd /tmp/node-install | |
wget http://nodejs.org/dist/v0.8.18/node-v0.8.18.tar.gz | |
tar -zxf node-v0.8.18.tar.gz | |
echo 'Node.js download & unpack completed' | |
# Install Node.js | |
echo 'Install Node.js' | |
cd node-v0.8.18 | |
./configure && make && checkinstall --install=yes --pkgname=nodejs --pkgversion "0.8.18" --default | |
echo 'Node.js 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. ' | |
OR Follow steps here to install redis as service > http://ijonas.com/software-development/nosql/412/ | |
INSTALL SOLR steps > http://kingstonlabs.co.uk/blog/how-to-install-solr-36-on-ubuntu-1204/ | |
############################################################## | |
# PART 1 | |
# | |
############################################################## | |
# | |
# Rock-Solid Node.js Platform on Ubuntu (http://apptob.org/) | |
# Auto-config by apptob.org | |
# Author: Ruslan Khissamov, email: [email protected] | |
# 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.18 | |
echo "Download Node.js - v. 0.8.18" | |
mkdir /tmp/node-install | |
cd /tmp/node-install | |
wget http://nodejs.org/dist/v0.8.18/node-v0.8.18.tar.gz | |
tar -zxf node-v0.8.18.tar.gz | |
echo "Node.js download & unpack completed" | |
# Install Node.js | |
echo Install Node.js | |
cd node-v0.8.18 | |
./configure && make && checkinstall --install=yes --pkgname=nodejs --pkgversion "0.8.18" --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