Nginx

啟動命令 mongo 時出現警告

  • August 5, 2016

我的伺服器在 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] 

你知道為什麼嗎 ?

當我在 /etc/mongod.conf 添加安全授權時,我解決了我的問題:

security:
   authorization: enabled

我沒有警告了。

引用自:https://serverfault.com/questions/792989