Created
December 8, 2015 04:43
-
-
Save yohm/04c03396ef14417514ad to your computer and use it in GitHub Desktop.
setting up OACIS on EC2
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
sudo yum update | |
echo "[MongoDB] | |
name=MongoDB Repository | |
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64 | |
gpgcheck=0 | |
enabled=1" | sudo tee -a /etc/yum.repos.d/mongodb.repo | |
sudo yum install -y mongodb-org-server mongodb-org-shell mongodb-org-tools | |
sudo service mongod start | |
sudo chkconfig mongod on | |
sudo yum install git | |
sudo yum install ruby-devel | |
git clone git://github.com/sstephenson/rbenv.git .rbenv | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile | |
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile | |
exec $SHELL | |
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build | |
sudo yum install gcc gcc-c++ | |
sudo yum install -y openssl-devel readline-devel zlib-devel | |
rbenv install 2.2.3 | |
rbenv global 2.2.3 | |
gem install bundler io-console | |
rbenv rehash | |
git clone -b master https://github.com/crest-cassia/oacis.git | |
cd oacis | |
sudo yum install libxslt-devel libxml2-devel zlib-devel | |
bundle config build.nokogiri --use-system-libraries | |
bundle | |
bundle exec rake daemon:start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment