This error always occurs when configuring mongodb under Win10.

when I install mongo as a window service, I always report this error:

2018-08-06T17:59:27.267+0800 I CONTROL [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify-- sslDisabledProtocols" none"

I"ve been kneeling all afternoon. What on earth is this mistake?

Apr.05,2021

try appending parameters after startup

--sslDisabledProtocols "none"
Is there any solution for

lz. I've been stuck with this problem for a long time


I also encountered this problem this afternoon.
is currently solved in this way
1. My mongo Android is on disk C (the default Next), environment variable is configured to restart.
2. Manually create mongo logs and files and database folders on D disk
3.dos. Do not execute more than one command at a time. One log and one data are executed separately.
now you can connect to the database in node koa


I tried to uninstall the mongoDB service and reinstall it once. Although this error is still displayed in CMD, you can connect to the database normally.
execute the following command to uninstall the MongoDB Server service
mongod-- config D:mongoDBmongo.conf-- remove
execute the following code to reinstall the service
mongod-- config D:mongoDBmongo.conf-- install-- serviceName "MongoDB"
after installation, find MongoDB in the system service and start the service to connect to the database


< H1 > mongod-- sslMode allowSSL (allows the use of SSL protocol) < / H1 >
     --sslDisabledProtocols TLS1_1 ()
     --logpath "D:\MongoDB\Server\4.0\log\mongod.log" () 
     --logappend -dbpath "D:\MongoDB\Server\4.0\data" ()
     --serviceName "mongodbService" ()
     --install 
     --sslPEMKeyFile (SLL) 

I also encountered, but my problem is caused by insufficient permissions, which is enabled when sudo is used in macos.

Menu