首页 > 其他分享 >How to install parse-server

How to install parse-server

时间:2023-03-25 18:44:34浏览次数:51  
标签:npm mongodb server parse How yum install

install mongoldb
vim /etc/yum.repos.d/mongodb.repo

[mngodb-org]
name=MongoDB Repository
baseurl=http://mirrors.aliyun.com/mongodb/yum/redhat/7Server/mongodb-org/4.0/x86_64/
gpgcheck=0
enabled=1

yum update
yum -y install mongodb-org
whereis mongod

vim /etc/mongod.conf
modify bindIp: 0.0.0.0

systemctl start mongod.service
systemctl enable mongod.service

install node
curl --silent --location https://rpm.nodesource.com/setup_16.x |bash -
yum remove -y nodejs npm
yum -y install nodejs

upgrade
npm install -g cnpm --registry=https://registry.npm.taobao.org
npm install -g [email protected]

install parse server
npm install -g parse-server parse-dashboard
Parse-server —help
Parse-dashboard —help

vim parse-server.config.json 
{
  "appId": "MYAPPID",
  "masterKey": "MYMASTERKEY",
  "restAPIKey": "MYRESTAPIKEY",
  "databaseURI": "mongodb://localhost:27017/example",
  "port": 9337,
  "serverURL": "http://localhost:9337"
}

nohup parse-server parse-server.config.json &

curl http://localhost:9337/parse/health

标签:npm,mongodb,server,parse,How,yum,install
From: https://www.cnblogs.com/itfriend/p/17255320.html

相关文章