已经解决,用户修改过mongodb配置文件,而且修改错误导致的,使用正确的mongodb配置文件覆盖后重启mongodb即可
- ## content
- systemLog:
- destination: file
- logAppend: true
- path: /www/server/mongodb/log/config.log
-
- # Where and how to store data.
- storage:
- dbPath: /www/server/mongodb/data
- directoryPerDB: true
- journal:
- enabled: true
- # how the process runs
- processManagement:
- fork: true
- pidFilePath: /www/server/mongodb/log/configsvr.pid
-
- # network interfaces
- net:
- port: 27017
- bindIp: 127.0.0.1
-
- #operationProfiling:
- #replication:
- # replSetName: bt_main
- security:
- authorization: disabled
- javascriptEnabled: false
- #sharding:
- # clusterRole: shardsvr
复制代码 |