mean stack

by siriuspic
5 deployments · 1 still active · last rev. 3 months ago

install of:
nginx
mongodb
nodeJS
npm

Compatible with: CentOS 7
						#!/bin/bash
####### Nginx #######
sudo yum install epel-release
sudo yum install nginx
sudo systemctl start nginx.service
sudo echo 'Nginx Installed'

####### MongoDB #######
sudo rm /etc/yum.repos.d/mongodb.repo
sudo mkdir -p /data/db
sudo echo '[mongodb]' >>  /etc/yum.repos.d/mongodb.repo
sudo echo 'name=MongoDB Repository' >>  /etc/yum.repos.d/mongodb.repo
sudo echo 'baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/' >>  /etc/yum.repos.d/mongodb.repo
sudo echo 'gpgcheck=0' >>  /etc/yum.repos.d/mongodb.repo
sudo echo 'enabled=1' >>  /etc/yum.repos.d/mongodb.repo
sudo echo "/etc/yum.repos.d/mondgob.repo created"
sudo yum install mongo-10gen mongo-10gen-server
sudo systemctl start mongod
export LC_ALL=C
sudo echo 'Mongodb Installed'

####### Node.JS #######
sudo yum install nodejs
sudo yum install npm
sudo echo 'Node.JS Installed'