![启动命令 mongo 时出现警告](https://linux22.com/image/687248/%E5%90%AF%E5%8A%A8%E5%91%BD%E4%BB%A4%20mongo%20%E6%97%B6%E5%87%BA%E7%8E%B0%E8%AD%A6%E5%91%8A.png)
我的服务器在 Ubuntu 16.04、Nginx 上运行。
mongo
当我在服务器上输入命令时出现以下警告:
Server has startup warnings:
2016-07-31T16:59:14.390+0200 I CONTROL [initandlisten]
2016-07-31T16:59:14.391+0200 I CONTROL [initandlisten] ** WARNING: Cannot detect if NUMA interleaving is enabled. Failed to probe "/sys/devices/system/node/node1": Permission denied
2016-07-31T16:59:14.391+0200 W CONTROL [initandlisten]
2016-07-31T16:59:14.391+0200 W CONTROL [initandlisten] Failed to probe "/sys/kernel/mm/transparent_hugepage": Permission denied
2016-07-31T16:59:14.391+0200 W CONTROL [initandlisten]
2016-07-31T16:59:14.391+0200 W CONTROL [initandlisten] Failed to probe "/sys/kernel/mm/transparent_hugepage": Permission denied
2016-07-31T16:59:14.391+0200 I CONTROL [initandlisten]
你知道为什么吗 ?
答案1
当我在 /etc/mongod.conf 中添加安全授权时,我解决了我的问题:
security:
authorization: enabled
我不再收到警告。