MongoDB服务器启动警告

问题描述 投票:-2回答:1

当我尝试启动mongo --->时,我收到了这些错误

Server has startup warnings:
2018-03-03T02:44:35.918+0600 I CONTROL  [initandlisten]
2018-03-03T02:44:35.918+0600 I CONTROL  [initandlisten] ** WARNING: Access control is not enabled for the database.
2018-03-03T02:44:35.919+0600 I CONTROL  [initandlisten] **          Read and write access to data and configuration is unrestricted.
2018-03-03T02:44:35.919+0600 I CONTROL  [initandlisten]
2018-03-03T02:44:35.919+0600 I CONTROL  [initandlisten] ** WARNING: This server is bound to localhost.
2018-03-03T02:44:35.919+0600 I CONTROL  [initandlisten] **          Remote systems will be unable to connect to this server.
2018-03-03T02:44:35.920+0600 I CONTROL  [initandlisten] **          Start the server with --bind_ip <address> to specify which IP
2018-03-03T02:44:35.921+0600 I CONTROL  [initandlisten] **          addresses it should serve responses from, or with --bind_ip_all to
2018-03-03T02:44:35.922+0600 I CONTROL  [initandlisten] **          bind to all interfaces. If this behavior is desired, start the
2018-03-03T02:44:35.923+0600 I CONTROL  [initandlisten] **          server with --bind_ip 127.0.0.1 to disable this warning.
2018-03-03T02:44:35.924+0600 I CONTROL  [initandlisten]
2018-03-03T02:44:35.925+0600 I CONTROL  [initandlisten]
2018-03-03T02:44:35.925+0600 I CONTROL  [initandlisten] ** WARNING: The file system cache of this machine is configured to be greater than 40% of the total memory. This can lead to increased memory pressure and poor performance.
2018-03-03T02:44:35.926+0600 I CONTROL  [initandlisten] See http://dochub.mongodb.org/core/wt-windows-system-file-cache
2018-03-03T02:44:35.927+0600 I CONTROL  [initandlisten]
mongodb
1个回答
0
投票

警告非常清楚默认情况下,您没有限制读写操作。 您的服务器位于本地计算机中,外部计算机无法访问您的计算机。 默认缓存大小配置是lsrge为您的内存

© www.soinside.com 2019 - 2024. All rights reserved.