This year mongodb added into my skill
set. Experts saying since last 10 years social media applications are most populars in the market which changes platforms, database and technology. This creates noSQL, hadoop and lots of new platforms for big data. Initially I want to say "MongoDB is a rapidly growing database in
database market shares". This is a noSQL or what we are saying
non-relational database . It become popular to develop rapid
applications/ e-commerce sites/ online systems/ social media
applications.
I am going to share my 1st post on mongodb database. Now you will get more stuffs every week. Here is 5 most usefull mongodb configuration commands. All these are 1st day commands to start on mongodb database. Before starting to work on mongodb database, 1st we have to start command prompt with mongodb bin folder .
I am going to share my 1st post on mongodb database. Now you will get more stuffs every week. Here is 5 most usefull mongodb configuration commands. All these are 1st day commands to start on mongodb database. Before starting to work on mongodb database, 1st we have to start command prompt with mongodb bin folder .
- How to start mongdb server.
- How to configure Data path.
- How to configure port.
- How to configure log.
- How to properly shut down mongodb server.
mongod <enter>
this will start the server if everything is fine.
mongod --dbpath <e:\data\db\>
this is to configure datafile path.
mongod --port <27017>
this is to configure port no.
mongod --fork --logpath <e:\data\mongodb\log\>
this is to configure log file.
if you have to check server is ok or not try to connect with mongo shell with below command.
mongo <enter>
and finally if you want to properly shut down mongodb server. Just below command from shell.
use admin <enter>
a.shutdownServer() <enter>
Thnks for reading.
Comments
Post a Comment
Plz dont forget to like Facebook Page..
https://www.facebook.com/pages/Sql-DBAcoin/523110684456757