安装完mongodb后,运行mongod –dbpath C:\Program Files\MongoDB\Server\6.0\data\db命令时出现下列错误,进入不了mongod,怎么办?请帮助,谢谢!
C:\Users\Administrator>mongod –dbpath=C:\Program Files\MongoDB\Server\6.0\data
{“t”:{“$date”:”2023-06-11T12:43:11.547+08:00″},”s”:”I”, “c”:”NETWORK”, “id”:4915701, “ctx”:”thread1″,”msg”:”Initialized wire specification”,”attr”:{“spec”:{“incomingExternalClient”:{“minWireVersion”:0,”maxWireVersion”:17},”incomingInternalClient”:{“minWireVersion”:0,”maxWireVersion”:17},”outgoing”:{“minWireVersion”:6,”maxWireVersion”:17},”isInternalClient”:true}}}
{“t”:{“$date”:”2023-06-11T12:43:11.549+08:00″},”s”:”I”, “c”:”CONTROL”, “id”:23285, “ctx”:”thread1″,”msg”:”Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify –sslDisabledProtocols ‘none'”}
{“t”:{“$date”:”2023-06-11T12:43:11.555+08:00″},”s”:”I”, “c”:”NETWORK”, “id”:4648602, “ctx”:”thread1″,”msg”:”Implicit TCP FastOpen in use.”}
{“t”:{“$date”:”2023-06-11T12:43:11.557+08:00″},”s”:”I”, “c”:”REPL”, “id”:5123008, “ctx”:”thread1″,”msg”:”Successfully registered PrimaryOnlyService”,”attr”:{“service”:”TenantMigrationDonorService”,”namespace”:”config.tenantMigrationDonors”}}
{“t”:{“$date”:”2023-06-11T12:43:11.557+08:00″},”s”:”I”, “c”:”REPL”, “id”:5123008, “ctx”:”thread1″,”msg”:”Successfully registered PrimaryOnlyService”,”attr”:{“service”:”TenantMigrationRecipientService”,”namespace”:”config.tenantMigrationRecipients”}}
{“t”:{“$date”:”2023-06-11T12:43:11.558+08:00″},”s”:”I”, “c”:”REPL”, “id”:5123008, “ctx”:”thread1″,”msg”:”Successfully registered PrimaryOnlyService”,”attr”:{“service”:”ShardSplitDonorService”,”namespace”:”config.tenantSplitDonors”}}
Invalid command: Files\MongoDB\Server\6.0\data
Options:
–networkMessageCompressors arg (=snappy,zstd,zlib)
Comma-separated list of compressors to
use for network messages