我的服务器在 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
我不再收到警告。