Docker启动Mongo报警告WARNING: /sys/kernel/mm/transparent_hugepage/enabled is 'always'.

警告信息

2019-11-27T09:28:16.659+0000 I CONTROL  [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/enabled is 'always'.
2019-11-27T09:28:16.659+0000 I CONTROL [initandlisten] ** We suggest setting it to 'never'
2019-11-27T09:28:16.659+0000 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/defrag is 'always'.
2019-11-27T09:28:16.659+0000 I CONTROL [initandlisten] ** We suggest setting it to 'never'

解决方案

sudo echo never >>  /sys/kernel/mm/transparent_hugepage/enabled
sudo echo never >> /sys/kernel/mm/transparent_hugepage/defrag
posted @ 2019-11-29 10:36  留一日白  阅读(1881)  评论(0编辑  收藏  举报