setup node and mongodb on centos 7 using npm code example
Example 1: setup node and mongodb on centos 7 using npm
yum install -y mongodb-org
#yum install -y https://repo.mongodb.org/yum/redhat/7/mongodb-org/3.6/x86_64/RPMS/mongodb-org-3.6.4-1.el7.x86_64.rpm
service mongod start
chkconfig mongod on
Example 2: setup node and mongodb on centos 7 using npm
[mongodb-org-4.2]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/4.2/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-4.2.asc
Example 3: setup node and mongodb on centos 7 using npm
vim /etc/yum.repos.d/mongodb-org-4.2.repo
Example 4: setup node and mongodb on centos 7 using npm
npm i -g gulp gulp-cli bower
Example 5: setup node and mongodb on centos 7 using npm
curl -sL https://rpm.nodesource.com/setup_10.x | bash -
curl -sL https://dl.yarnpkg.com/rpm/yarn.repo | tee /etc/yum.repos.d/yarn.repo
yum install -y nodejs yarn
npm i -g pm2 typescript
#pm2 startup
pm2 install typescript