Windows PowerShell

Copyright (C) Microsoft Corporation. All rights reserved.


PS C:\WINDOWS\system32> mongo

MongoDB shell version v4.0.6

connecting to: mongodb://127.0.0.1:27017/?gssapiServiceName=mongodb

Implicit session: session { "id" : UUID("5c612df6-b213-4165-b11f-49c8ab7e7779") }

MongoDB server version: 4.0.6

Welcome to the MongoDB shell.

For interactive help, type "help".

For more comprehensive documentation, see

        http://docs.mongodb.org/

Questions? Try the support group

        http://groups.google.com/group/mongodb-user

Server has startup warnings:

2019-03-06T20:33:52.645-0700 I CONTROL  [initandlisten]

2019-03-06T20:33:52.646-0700 I CONTROL  [initandlisten] ** WARNING: Access control is not enabled for the database.

2019-03-06T20:33:52.646-0700 I CONTROL  [initandlisten] **          Read and write access to data and configuration is unrestricted.

2019-03-06T20:33:52.648-0700 I CONTROL  [initandlisten]

2019-03-06T20:33:52.648-0700 I CONTROL  [initandlisten] ** WARNING: This server is bound to localhost.

2019-03-06T20:33:52.651-0700 I CONTROL  [initandlisten] **          Remote systems will be unable to connect to this server.

2019-03-06T20:33:52.651-0700 I CONTROL  [initandlisten] **          Start the server with --bind_ip to specify which IP

2019-03-06T20:33:52.652-0700 I CONTROL  [initandlisten] **          addresses it should serve responses from, or with --bind_ip_all to

2019-03-06T20:33:52.652-0700 I CONTROL  [initandlisten] **          bind to all interfaces. If this behavior is desired, start the

2019-03-06T20:33:52.654-0700 I CONTROL  [initandlisten] **          server with --bind_ip 127.0.0.1 to disable this warning.

2019-03-06T20:33:52.655-0700 I CONTROL  [initandlisten]

---

Enable MongoDB's free cloud-based monitoring service, which will then receive and display

metrics about your deployment (disk utilization, CPU, operation statistics, etc).


The monitoring data will be available on a MongoDB website with a unique URL accessible to you

and anyone you share the URL with. MongoDB may use this information to make product

improvements and to suggest MongoDB products and deployment options to you.


To enable free monitoring, run the following command: db.enableFreeMonitoring()

To permanently disable this reminder, run the following command: db.disableFreeMonitoring()