采用新策略,软件都放到 /root/ 下

This commit is contained in:
luk.lu
2019-10-04 10:45:28 +08:00
parent c387edc55c
commit b55c8ea5f9
2 changed files with 5 additions and 4 deletions

View File

@@ -6,9 +6,10 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"dev": "node --inspect-brk ./",
"mongod": "/home/adot/mongodb/bin/mongod -f ./mongod.conf --logpath /home/adot/mongodb/log/mongod.log",
"mongodump": "/home/adot/mongodb/bin/mongodump -h localhost:6842 -d vic -o /home/adot/mongodb/backup",
"mongorestore": "/home/adot/mongodb/bin/mongorestore -h localhost:6842 -d vic -o /home/adot/mongodb/backup/vic",
"mongodb.install": "wet https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-debian92-4.2.0.tgz && tar xzf mongodb-linux-x86_64-debian92-4.2.0.tgz",
"mongod": "/root/mongodb/bin/mongod -f /root/vic.server/mongod.conf --logpath /root/mongodb/log/mongod.log",
"mongodump": "/root/mongodb/bin/mongodump -h localhost:6842 -d vic -o /root/mongodb/backup",
"mongorestore": "/root/mongodb/bin/mongorestore -h localhost:6842 -d vic /root/mongodb/backup/vic",
"daemon.pm2": "cross-env NODE_ENV=production pm2 start index.js --name vic.server"
},
"author": "Nova.xu",