How to install mongodb

[Mobile version(QRCode)] Total views:68,865 / Applauds for blog:1
Welcome to my page. I am an adminisrator of this site.
If you are this db's user, please contact with me by private mail. If not, please contact with me by email or twitter or facebook
Access record[Graph / PV Info.(Past 1 day / Past 1 week) / Access from outside (Yesterday / Past 1 week) / Vistors's list]
ProfilePmail(Mail)
Inbox   /Send   /Sent
Reviews(List   /Limit)
Poll   /Agree:Got   /Sent
Fan
Works/Music
Blog
[Write]
Links
My Play List
<=Newer article My service list
=>Older article How to make Android App run using meteor v1.5.x or later

1.
2017/07/28 (Updated 2018/02/25) "Mongodb > How to install mongodb"
[Show only this article / Modify / Delete / Send trackback / Add to the shared category]

1. Necessary HW spec for MongoDB
2. Choice of propper instance provider
    1. DBAAS (Database as a service)
    2. Choose from VPS or Clould service provider
        1. VPS
        2. Public Cloud
3. How to install mongodb to Amazon Linux
4. How to install mongodb server on Mac
5. Solve the warnings

1. Necessary HW spec for MongoDB

MongoDB Atlas's plan course can be the guide for us.
The least charged plan provide us 2GB RAM machines and it is pretty faster than free one.
So you can assume that 2GB is appropriate instance.
2. Choice of propper instance provider


    1. DBAAS (Database as a service)

If you are working for some company, considering human cost, it is reasonable to use DBAAS instead of constructing and maintain the service by yourself.

In that case, official mongodb service
https://www.mongodb.com/
is good.
And if you are using AWS, mongodb atlas is constructed on AWS and you can communicate the service through VPC peering, it will become your first choice definitely.
    2. Choose from VPS or Clould service provider

The difference between some VPS service and cloud service is getting smaller and smaller.
So if you think you will consider by the spec and price, following ones can be the candidate limiting by 2GB memory.
      1. VPS

ConohaUS $13.43 Core, 2GB RAM,50GB SSD, No limit bandwidthOnly Tokyo is this price (Cheapest)
VultrUS $101 Core, 2GB RAM, 40GB SSD, 2TB Bandwidth 
Digital Ocean$202 Core, 2GB RAM, 40GB SSD, 3TB BandwidthIf you subscribe from this link, you will get US $10 discount

      2. Public Cloud

In the case of public cloud, what we want to get is not cheapest as price but cheapest in terms of full functionality.
In that meaning, AWS is still king.
https://aws.amazon.com/
3. How to install mongodb to Amazon Linux

sudo vi /etc/yum.repos.d/mongodb-org-3.4.repo
[mongodb-org-3.6]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.6/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-3.6.asc

sudo yum install -y mongodb-org;

sudo service mongod start;

sudo chkconfig mongod on;
4. How to install mongodb server on Mac

brew install mongodb;
brew services start mongodb;
5. Solve the warnings

2017-08-13T16:23:38.619+0900 I STORAGE [initandlisten]
2017-08-13T16:23:38.619+0900 I STORAGE [initandlisten] ** WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine
2017-08-13T16:23:38.619+0900 I STORAGE [initandlisten] ** See http://dochub.mongodb.org/core/prodnotes-filesystem
2017-08-13T16:23:38.653+0900 I CONTROL [initandlisten]
2017-08-13T16:23:38.653+0900 I CONTROL [initandlisten] ** WARNING: Access control is not enabled for the database.
2017-08-13T16:23:38.653+0900 I CONTROL [initandlisten] ** Read and write access to data and configuration is unrestricted.
2017-08-13T16:23:38.653+0900 I CONTROL [initandlisten]
2017-08-13T16:23:38.653+0900 I CONTROL [initandlisten]
2017-08-13T16:23:38.653+0900 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/enabled is 'always'.
2017-08-13T16:23:38.653+0900 I CONTROL [initandlisten] ** We suggest setting it to 'never'
2017-08-13T16:23:38.653+0900 I CONTROL [initandlisten]
2017-08-13T16:23:38.653+0900 I CONTROL [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/defrag is 'always'.
2017-08-13T16:23:38.653+0900 I CONTROL [initandlisten] ** We suggest setting it to 'never'
2017-08-13T16:23:38.653+0900 I CONTROL [initandlisten]
2017-08-13T16:23:38.653+0900 I CONTROL [initandlisten] ** WARNING: soft rlimits too low. rlimits set to 4096 processes, 64000 files. Number of processes should be at least 32000 : 0.5 times number of files.
2017-08-13T16:23:38.653+0900 I CONTROL [initandlisten]


Add comment to this article


[Read other articles]
<=Newer article My service list
=>Older article How to make Android App run using meteor v1.5.x or later


Articles categorized as "Mongodb by this user"
All articles of this user
Subscribe to RSS
RSS
Term
Category
All
1.Japan
2.Atlassian's products
3.Self
4.Development of this site
5.Japanese comics
6.Japanese anime
7.Weekly hot news of Japanese culture
8.OP/ED/PV
9.Japanese game
10.Ranking
11.Japanese Comics (Manga)
12.Search Engine
13.Japanese drama
14.Japanese otaku culture
15.Programming
16.Ineternet world
17.Movie
18.C/C++
19.BerkeleyDB
20.Apache programming
21.Spam
22.Meteor
23.Marketing
24.Python
25.Scrum
26.JIRA
27.Git
28.CI
29.Jenkins
30.AWS
31.Operation
32.Singapore
33.Cloud
34.Mysql Cluster
35.DevOps
36.Bitbucket
37.Xamarin
38.Good and new
39.Monitoring
40.JavaScript(node.js)
41.React
42.Phillipines
43.Hiring
44.Python
45.SEO
46.Malaysia
47.Mongodb
48.Perl
49.Docker
50.Life hack
51.Dance
52.QA
53.Mysql
54.Digital Life Hack
55.Project management
56.Django
57.Gatsby
58.Administrator
Sayings from S-Cry-Ed

Rule in this world is speed. Even stupid person can write cool novel if he can spend 20 years for it.

If someone helped me, I will help him in return, which is my rule.

To become stronger, consider what is cowardliest thinking. And rebel against the thinking, which will make you stronger.



I am Japanese but working for some English sites.

Doctor Job Career
Nurse Job Career
↑Top