我删除了MongoDB 2.6,然后安装了MongoDB 3.4。当我连接到MongoDB 3.4服务器时,有几个新的启动警告:
MongoDB shell version v3.4.2
connecting to: mongodb://127.0.0.1:27017
MongoDB server version: 3.4.2
Server has startup warnings:
2017-03-20T20:27:36.175+0545 I STORAGE [initandlisten]
2017-03-20T20:27:36.175+0545 I STORAGE [initandlisten] ** WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine
2017-03-20T20:27:36.175+0545 I STORAGE [initandlisten] ** See http://dochub.mongodb.org/core/prodnotes-filesystem
2017-03-20T20:27:36.855+0545 I CONTROL [initandlisten]
2017-03-20T20:27:36.855+0545 I CONTROL [initandlisten] ** WARNING: Access control is not enabled for the database.
2017-03-20T20:27:36.855+0545 I CONTROL [initandlisten] ** Read and write access to data and configuration is unrestricted.
2017-03-20T20:27:36.855+0545 I CONTROL [initandlisten]
2017-03-20T20:27:36.855+0545 I CONTROL [initandlisten]
2017-03-20T20:27:36.855+0545 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/enabled is 'always'.
2017-03-20T20:27:36.855+0545 I CONTROL [initandlisten] ** We suggest setting it to 'never'
2017-03-20T20:27:36.855+0545 I CONTROL [initandlisten]
2017-03-20T20:27:36.855+0545 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/defrag is 'always'.
2017-03-20T20:27:36.855+0545 I CONTROL [initandlisten] ** We suggest setting it to 'never'
2017-03-20T20:27:36.855+0545 I CONTROL [initandlisten]
如何删除这些警告?
不,这些是警告。而且,它们会告诉您如何预防。到底是什么问题?
—
乔斯
我如何删除这些..您能帮我吗,我是新手..
—
Raju
我不是MongoDB管理员,因此这些系统设置不是由临时用户更改的。即使这样,我也可以在Google上找到几个指针来更改这些系统设置。但是我的问题是:这些消息是建议,而不是错误,那么问题出在哪儿呢?
—
乔斯