Showing posts with label MongoDB. Show all posts
Showing posts with label MongoDB. Show all posts

Saturday, June 10, 2017

Failed to start mongod.service unit mongod.service not found. ubuntu 16.04

In this post I will show you how to resolve Failed to start mongod.service unit mongod.service not found.

Previously I had shown how to install MongoDB on Ubuntu & Windows

First Open Terminal and enter the below command.

sudo vim /etc/systemd/system/mongodb.service
Now it should look as shown below.























How to Install MongoDB on Ubuntu 16.04

In this post I will show how to Install MongoDB on Ubuntu 16.04.
Previously I had shown how to install MongoDB on Windows

Execute the following commands in the terminal one by one

Monday, December 26, 2016

Asp.Net MVC with MongoDB

In the Previous Posts I had shown
Now in this post I will show how to Connect with MongoDB using MongoDBCSharpDriver in Asp.Net MVC and retrieve data from MongoDB.

OutPut:














Saturday, December 24, 2016

Error during serialization or deserialization using the JSON JavaScriptSerializer.

Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property.
























Friday, December 16, 2016

How to check mongodb is running or not

In the previous 2 POSTS we had shown


In this post we will show How to Check if MongoDB is running or not

Continuing the above 2 posts....

open command prompt and run the below command as shown below.

Then you can find its Shell Version, Server Version and Running Port.

Run MongoDB as Windows service

In the previous POST we had shown How to install MongoDB in Windows

http://reddyinfosoft.blogspot.in/2016/12/mongodb-installation-on-windows.html

Now in this post I will show how to ADD MongoDB as Service in windows



















Continuing the previous post...

GO to C:\MongoDB,  press "Shift Key and Right Click on Bin Folder",
Select Open command window here in the context menu and use the command as shown below.

MongoDB Installation on Windows

Here I am going to show you, how to Install MongoDB in Windows.

Go to MongoDB download Center as shown in the below link

https://www.mongodb.com/download-center#community

and select Windows Server 2008 R2 64-bit and later, with SSL support x64 from dropdown and download as shown in the below image.