Created
May 23, 2012 21:14
-
-
Save dstroot/2777863 to your computer and use it in GitHub Desktop.
master install script
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
#!/bin/bash | |
############################################### | |
# To use: | |
# wget https://raw.github.com/gist/2776679/c131c0548e7cd2ece85edfb8bea70575586147c7/install-redis.sh | |
# chmod 777 install-redis.sh | |
# ./install-redis.sh | |
############################################### | |
echo "*****************************************" | |
echo " Get superuser and install all updates " | |
echo "*****************************************" | |
sudo su | |
yum –y update | |
echo "*****************************************" | |
echo " Installing Development Tools" | |
echo "*****************************************" | |
yum install gcc gcc-c++ make -y | |
yum install openssl-devel -y | |
yum install git -y | |
echo "*****************************************" | |
echo " 1. Install MySQL" | |
echo "*****************************************" | |
wget https://raw.github.com/gist/2776351/23ea2ee24de30b12f0bf07a3bda67b23232b1d3f/ec2-mysql-installation.sh | |
chmod 777 ec2-mysql-installation.sh | |
./ec2-mysql-installation.sh | |
rm ec2-mysql-installation.sh | |
echo "*****************************************" | |
echo " 2. Install Redis" | |
echo "*****************************************" | |
wget https://raw.github.com/gist/2776679/b4f5f5ff85bddfa9e07664de4e8ccf0e115e7b83/install-redis.sh | |
chmod 777 install-redis.sh | |
./install-redis.sh | |
rm install-redis.sh | |
echo "*****************************************" | |
echo " 3. Install Node.js" | |
echo "*****************************************" | |
wget https://raw.github.com/gist/2190579/6d2395f3f7a0a98f7e2c6977f3bbd786b873c71a/ec2_install_node.sh | |
chmod 777 ec2_install_node.sh | |
./ec2_install_node.sh | |
rm ec2_install_node.sh | |
echo "*****************************************" | |
echo " 4. Install Vizilinkz" | |
echo "*****************************************" | |
cd ~/ | |
git clone https://[email protected]/dstroot/vizilinkz.git | |
cd vizilinkz | |
# Install dependencies | |
sudo npm install –d | |
# Create your database: | |
mysql -uroot -paa853127 -e 'CREATE DATABASE bookmarks;' | |
# Create your tables | |
mysql -uroot -paa853127 bookmarks < schema.sql | |
# start the application | |
NODE_ENV=production forever start server.js | |
echo "*****************************************" | |
echo " 5. Install reboot script" | |
echo "*****************************************" | |
wget https://raw.github.com/gist/2777821/7ce8642719791d0ac516ae686160d85f35f91f24/install_reboot.sh | |
chmod 777 install_reboot.sh | |
./install_reboot.sh | |
rm install_reboot.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment