sudo yum install mongodb-server

sudo yum install mongodb

sudo service mongod start / enable 

sudo chkconfig mongod on 

sudo service mongod stop 

sudo service mongod restart

sudo yum install nodejs

sudo yum install npm

npm install express

node app.js & – to run 

sudo firewall-cmd –add-port=3000/tcp —permanent

sudo firewall-cmd —reload

Advertisements