I control [Initandlisten] * * WARNING:/sys/kernel/mm/transparent_hugepage/enabled is ' always '.

Source: Internet
Author: User
Tags mongodb lenovo

Prompt information below when starting MongoDB

Server has startup warnings: 
2015-06-18t17:20:17.944+0800 I control  [Initandlisten] 
2015-06-18t17 : 20:17.944+0800 I control  [Initandlisten] * * WARNING:/sys/kernel/mm/transparent_hugepage/enabled is ' always '.
2015-06-18t17:20:17.944+0800 I Control  [Initandlisten] * *        We suggest setting it to ' Never '
2015-06-18t17 : 20:17.944+0800 i control  [Initandlisten] 
2015-06-18t17:20:17.944+0800 i control  [Initandlisten] * * WARNING:/sys/kernel/mm/transparent_hugepage/defrag is ' always '.
2015-06-18t17:20:17.944+0800 I Control  [Initandlisten] * *        We suggest setting it to ' Never '
2015-06-18t17:20:17.944+0800 I Control  [Initandlisten] 

Just open the/etc/init/mongod.conf file and add the code below to the Chown $DEAMONUSER/var/run/mongodb.pid and End script. You can pay attention to the alignment of the spaces.

If Test-f/sys/kernel/mm/transparent_hugepage/enabled; Then
   echo never >/sys/kernel/mm/transparent_hugepage/enabled
fi
if Test-f/sys/kernel/mm/ Transparent_hugepage/defrag; Then
   echo never >/sys/kernel/mm/transparent_hugepage/defrag
fi

and restart the Mongod service.

deng@deng-lenovo:~$ sudo service mongod restart
mongod stop/waiting mongod
, Process start/running
deng@deng-lenovo:~$ MONGO
MongoDB shell version:3.0.4
connecting to:test
> 



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.