Create Your MongoDB Standalone Server Instance
Introduction:
Now we have got our Mongo DB packages in our
machine. So let’s start with our first MongoDB standalone server instance. This
server can be configured with authentication or without authentication. But it
is recommended to start the server in authenticated mode when you connected in
a network.
There are three ways in which you can start
your server instance:
Direct by double click on
mongod.exe
Using command prompt.
Configure as a service.
There are two modes:
With authentication and
Without authentication
Little About Package Mongo.exe:
The package Mongod.exe will
be used for standalone instance of the MongoDB server. If you are going to do
clustering of the server then in that case we will have to use Mongos as well.
Mongod.exe can be started with many options like mentioned below.
If you would like to start in authenticated
mode
Mongod –-auth
You can specify DB path when starting server instance
and your DB path is not default (“C:\Data\DB”), your port is not default (27017)
etc.
Mongod -–auth -–dbpath “D:\Data\DB” –-Port 27018 --bind_ip
172.xxx.xx.xx
Jump Start:
Server instance without authentication:
Let’s start with creating an instance,
and for a jump start first I will consider without authentication. I will
explain those three ways to start a server instance as mentioned above.
1). Direct by double click on
mongod.exe:
In order to create server
instance without any authentication it’s quite simple, just go to the bin
folder (“C:\Program Files\MongoDB\Server\3.0\bin”) and then double click on
mongod.exe.
Please follow my next blog to learn, how can we run server instance using command prompt.
References:
No comments:
Post a Comment