如何在输入启动命令时为mongodb添加身份验证:
root@NSBLR:/# mongo
MongoDB shell version: 3.0.1
connecting to: test
此外,服务器有启动警告:
2015-04-02T09:43:04.775+0530 I CONTROL [initandlisten]
2015-04-02T09:43:04.775+0530 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/enabled is 'always'.
2015-04-02T09:43:04.775+0530 I CONTROL [initandlisten] ** We suggest setting it to 'never'
2015-04-02T09:43:04.775+0530 I CONTROL [initandlisten]
2015-04-02T09:43:04.775+0530 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/defrag is 'always'.
2015-04-02T09:43:04.775+0530 I CONTROL [initandlisten] ** We suggest setting it to 'never'
2015-04-02T09:43:04.775+0530 I CONTROL [initandlisten]