From 2f005cbadd5d4f8c73ee2f63b9625847833111c1 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Wed, 1 May 2024 03:36:34 +0800 Subject: [PATCH] update --- plugins/mongodb/config/mongodb.bak.conf | 18 +++++++++++++ plugins/mongodb/config/mongodb.conf | 34 ++++++++++++------------- 2 files changed, 34 insertions(+), 18 deletions(-) create mode 100644 plugins/mongodb/config/mongodb.bak.conf diff --git a/plugins/mongodb/config/mongodb.bak.conf b/plugins/mongodb/config/mongodb.bak.conf new file mode 100644 index 000000000..2e1ecfdf6 --- /dev/null +++ b/plugins/mongodb/config/mongodb.bak.conf @@ -0,0 +1,18 @@ +directoryperdb = true +dbpath = {$SERVER_PATH}/mongodb/data +logpath = {$SERVER_PATH}/mongodb/logs/mongodb.log +logappend = true +bind_ip = 127.0.0.1 +port = 27017 +fork = true +auth = false +#smallfiles = true + +oplogSize=100 + +# Master/slave replication is no longer supported +#master = true + +#replSet = test + +pidfilepath = {$SERVER_PATH}/mongodb/mongodb.pid diff --git a/plugins/mongodb/config/mongodb.conf b/plugins/mongodb/config/mongodb.conf index 2e1ecfdf6..b5df7a37a 100644 --- a/plugins/mongodb/config/mongodb.conf +++ b/plugins/mongodb/config/mongodb.conf @@ -1,18 +1,16 @@ -directoryperdb = true -dbpath = {$SERVER_PATH}/mongodb/data -logpath = {$SERVER_PATH}/mongodb/logs/mongodb.log -logappend = true -bind_ip = 127.0.0.1 -port = 27017 -fork = true -auth = false -#smallfiles = true - -oplogSize=100 - -# Master/slave replication is no longer supported -#master = true - -#replSet = test - -pidfilepath = {$SERVER_PATH}/mongodb/mongodb.pid +net: + bindIp: 127.0.0.1 + port: 27017 +processManagement: + fork: true + pidFilePath: {$SERVER_PATH}/mongodb/mongodb.pid +security: + authorization: disabled + javascriptEnabled: false +storage: + dbPath: {$SERVER_PATH}/mongodb/data + directoryPerDB: true +systemLog: + destination: file + logAppend: true + path: {$SERVER_PATH}/mongodb/logs/mongodb.log \ No newline at end of file