[root@node2 ~]# mongo --port 27019
MongoDB shell version v4.2.7
connecting to: mongodb://127.0.0.1:27019/?compressors=disabled&gssapiServiceName=mongodb
Implicit session: session { "id" : UUID("3a0e3c69-e62e-480e-83ae-ec66fc2a9594") }
MongoDB server version: 4.2.7
Server has startup warnings:
2020-11-05T15:06:07.056+0800 I CONTROL [main]
2020-11-05T15:06:07.056+0800 I CONTROL [main] ** WARNING: Access control is not enabled for the database.
2020-11-05T15:06:07.056+0800 I CONTROL [main] ** Read and write access to data and configuration is unrestricted.
2020-11-05T15:06:07.056+0800 I CONTROL [main] ** WARNING: You are running this process as the root user, which is not recommended.
2020-11-05T15:06:07.056+0800 I CONTROL [main]
2020-11-05T15:06:07.056+0800 I CONTROL [main] ** WARNING: This server is bound to localhost.
2020-11-05T15:06:07.056+0800 I CONTROL [main] ** Remote systems will be unable to connect to this server.
2020-11-05T15:06:07.056+0800 I CONTROL [main] ** Start the server with --bind_ip <address> to specify which IP
2020-11-05T15:06:07.056+0800 I CONTROL [main] ** addresses it should serve responses from, or with --bind_ip_all to
2020-11-05T15:06:07.056+0800 I CONTROL [main] ** bind to all interfaces. If this behavior is desired, start the
2020-11-05T15:06:07.056+0800 I CONTROL [main] ** server with --bind_ip 127.0.0.1 to disable this warning.
2020-11-05T15:06:07.056+0800 I CONTROL [main]
mongos>
mongos>