remove mongodb folder

This commit is contained in:
Luk Lu
2019-10-03 14:28:30 +08:00
parent 2b81d11aa0
commit 4571d783f2
3 changed files with 4 additions and 6 deletions

2
.gitignore vendored
View File

@@ -5,5 +5,3 @@ package-lock.json
configSec.js configSec.js
*test.js *test.js
build build
mongodb/dump
mongodb/mongo.log

View File

@@ -7,5 +7,5 @@ security:
javascriptEnabled: true javascriptEnabled: true
authorization: enabled authorization: enabled
systemLog: systemLog:
path: /data/log/mongo.log #日志路径。 path: ~/mongodb/log/mongod.log #日志路径。
destination: file #日志输出方式。file/syslog,如果是file需指定path默认是输出到标准输出流中 destination: file #日志输出方式。file/syslog,如果是file需指定path默认是输出到标准输出流中

View File

@@ -6,9 +6,9 @@
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1", "test": "echo \"Error: no test specified\" && exit 1",
"dev": "node --inspect-brk ./", "dev": "node --inspect-brk ./",
"mongod": "../mongodb/bin/mongod -f ./mongod.conf --logpath ../mongodb/log/mongod.log", "mongod": "~/mongodb/bin/mongod -f ./mongod.conf --logpath ~/mongodb/log/mongod.log",
"mongod-org": "mongod -f ./mongod.conf --logpath ../mongodb/log/mongod.log", "mongodump": "~/mongodb/bin/mongodump -h localhost:6842 -d vic -o ~/mongodb/backup",
"mongodump": "../mongodb/bin/mongodump -h localhost:6842 -d vic -o ../mongodb/backup", "mongorestore": "~/mongodb/bin/mongorestore -h localhost:6842 -d vic -o ~/mongodb/backup/vic",
"daemon.pm2": "cross-env NODE_ENV=production pm2 start index.js --name vic.server" "daemon.pm2": "cross-env NODE_ENV=production pm2 start index.js --name vic.server"
}, },
"author": "Nova.xu", "author": "Nova.xu",