Created
July 1, 2015 01:59
-
-
Save keithics/647f2ebdeba07d58ac39 to your computer and use it in GitHub Desktop.
MEAN Stack - AWS
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
MEAN Stack - AWS | |
Installing NodeJS on CenOS/AWS Linux AMI | |
yum -y update | |
yum -y groupinstall "Development Tools” | |
yum -y install screen | |
cd /usr/src | |
wget http://nodejs.org/dist/v0.10.4/node-v0.10.4.tar.gz | |
tar zxf node-v0.10.4.tar.gz | |
cd node-v0.10.4 | |
./configure | |
make | |
make install | |
NPM | |
curl -L https://npmjs.org/install.sh | sudo sh | |
sudo yum install openssl-devel | |
Installing MongoDB | |
nano /etc/yum.repos.d/mongodb.repo | |
[mongodb] | |
name=MongoDB Repository | |
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/ | |
gpgcheck=0 | |
enabled=1 | |
sudo yum install -y mongodb-org | |
yum -y install policycoreutils-python | |
yum install libselinux libselinux-utils libselinux-utils selinux-policy-minimum selinux-policy-mls selinux-policy-targeted policycoreutils | |
semanage port -a -t mongod_port_t -p tcp 27017 | |
service mongod restart | |
reboot | |
netstat -tulpn | grep :2701 | |
service nginx restart | |
Optimization | |
nano /etc/mongod.conf | |
— bind ip = 0.0.0.0. | |
— port 27017 | |
mongo --port 27017 -u siteUserAdmin -p password --authenticationDatabase admin | |
http://docs.mongodb.org/manual/reference/ulimit/? | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment