How to install Mongo Db server in windows server

First, download the mongo database MSI installer:

After download the msi installer, double click on it:


rrr1.png
Accept the user license agreement:
rrr2.png
Ready to install mongo ddb 3.4 with complete setup click on install now:
rrr3.png
To access mongo via GUI you can install the MongoDB Compass Community on server.
You can create the custom configuration file while using the following methods:
  1. Create the data and log Directories via cmd method.
     mkdir c:\data\db
     mkdir c:\data\log
  2. Create the configuration file for example :
C:\Program Files\MongoDB\Server\3.4\mongod.cfg
In the file specified the data path and custom port
#Where to write logging data.

systemLog:
destination: file
path: c:\data\log

#where to write  data.
storage:
dbPath: c:\data\db

#network interfaces
net:
port: 35615
bindIp: 127.0.0.1,103.x.x.x

#processManagement:

security:
authorization: "enabled"
  1. Create the MongoDB Service as per following command on CMD:
    sc.exe create MongoDB binPath= "\"C:\Program Files\MongoDB\Server\3.4\bin\mongod.exe\" --service --config=\"C:\Program Files\MongoDB\Server\3.4\mongod.cfg\"" DisplayName= "MongoDB" start= "auto"
  2. Start the mongo service :
    CMD > net start MongoDB

1 comment:

  1. Your Affiliate Money Making Machine is waiting -

    Plus, making profit with it is as easy as 1 . 2 . 3!

    Here's how it works...

    STEP 1. Choose affiliate products the system will push
    STEP 2. Add some PUSH BUTTON traffic (it LITERALLY takes 2 minutes)
    STEP 3. See how the system explode your list and sell your affiliate products for you!

    So, do you want to start making money???

    Click here to check it out

    ReplyDelete

ABOUT CLOUDTECHTIQ

CloudTechtiq founded in 2017 since then it has emerged as a niche managed web hosting, Dedicated Server, and Cloud Server Company in Indi...