我已经使用以下链接安装了最新版本的 mongodb (v4.0.5) https://docs.mongodb.com/manual/tutorial/install-mongodb-on-red-hat/ 现在我正在尝试设置使用以下教程中提供的说明进行复制 但是,一旦我在“2.通过发出以下命令在自己的 shell 窗口中启动您的 mongod 实例”处尝试该命令,它就会给我以下错误“未设置会话集合向上;等待下一次会话刷新间隔:尚未配置复制”
我使用的命令:mongod --replSet rs0 --port 27019 --bind_ip localhost,[MY_IP] --dbpath /srv/mongodb/rs0-2 --smallfiles --oplogSize 128
该命令的更详细输出如下:
2018-12-31T15:37:03.618+0530 I CONTROL [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'
2018-12-31T15:37:03.623+0530 I CONTROL [initandlisten] MongoDB starting : pid=xxx port=27017 dbpath=/srv/mongodb/rs0-0 64-bit host=xxx
2018-12-31T15:37:03.623+0530 I CONTROL [initandlisten] db version v4.0.5
2018-12-31T15:37:03.623+0530 I CONTROL [initandlisten] git version: xxx
2018-12-31T15:37:03.623+0530 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.1e-fips 11 Feb 2013
2018-12-31T15:37:03.623+0530 I CONTROL [initandlisten] allocator: …Run Code Online (Sandbox Code Playgroud)