Loaded plugins: priorities, update-motd, upgrade-helper
File contains no section headers.
file: file:///etc/yum.repos.d/mongodb-org-3.0.repo, line: 1
'name=MongoDB Repository\n'
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/amazon/2013.03/mongodb-org/3.0/x86_64/
gpgcheck=0
enabled=1
0000000 n a m e = M o n g o D B R e p
0000020 o s i t o r y \n b a s e u r l =
0000040 h t t p s : / / r e p o . m o n
0000060 g o d b . o r g / y u m / a m a
0000100 z o n / 2 0 1 3 . 0 3 / m o n g
0000120 o d b - o r g / 3 . 0 / x 8 6 _
0000140 6 4 / \n g p g c h e c k = 0 \n e
0000160 n a b l e d = 1 \n
0000171
[mongodb-enterprise]
name=MongoDB Enterprise Repository
baseurl=https://repo.mongodb.com/yum/amazon/2013.03/mongodb-enterprise/stable/$basearch/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-3.2.asc
sudo yum install -y mongodb-enterprise
sudo yum install cyrus-sasl cyrus-sasl-plain cyrus-sasl-gssapi krb5-libs lm_sensors-libs net-snmp-agent-libs net-snmp openssl rpm-libs tcp_wrappers-libs
sudo service mongod start
sudo tail -f /var/log/mongodb/mongod.log
/usr/bin/mongo
MongoDB Enterprise > use mytestdb
File contains no section headers.
file: file:///etc/yum.repos.d/mongodb-org-3.0.repo, line: 1
‘name=MongoDB Repository\n’
Hi Bill,
The error message is caused by a lack of header information in the repo file. Note that the instructions on Install MongoDB on Amazon is listing [mongodb-org-3.0]
as the first line, which is missing from your repo file content.
The full content of the repo file for MongoDB v3.0.x should be:
[mongodb-org-3.0]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/amazon/2013.03/mongodb-org/3.0/x86_64/
gpgcheck=0
enabled=1
For general enhancements and bug fixes I would recommend to use the latest stable release of MongoDB, currently is v3.2. See also:
Follow instructions at https://docs.mongodb.org/manual/tutorial/install-mongodb-enterprise-on-amazon/ worked;; there are other instructions that don’t work.
Note that the MongoDB Enterprise edition is a commercially supported product. If your company has a commercial subscription and would like some assistance in installation I would suggest to open a case in the Commercial Support Project in MongoDB Jira.
Alternatively if you are evaluating MongoDB Enterprise and is interested, feel free to send me a private message of your contact details and I can request a MongoDB Account Executive to reach out to you.
Kind regards,
Wan.