{"id":951,"date":"2019-12-10T11:13:10","date_gmt":"2019-12-10T04:13:10","guid":{"rendered":"https:\/\/zinisoft.net\/?p=951"},"modified":"2024-05-29T08:32:12","modified_gmt":"2024-05-29T08:32:12","slug":"how-to-install-mongodb-on-windows-10","status":"publish","type":"post","link":"https:\/\/zinisoft.net\/vi\/how-to-install-mongodb-on-windows-10\/","title":{"rendered":"How to install MongoDB on Windows 10"},"content":{"rendered":"\r\n
MongoDB is a popular NoSQL database that provides flexibility, scalability, and ease of use. In this blog post, we\u2019ll walk through the step-by-step process of installing MongoDB on a Windows 10 machine.<\/p>\r\n\r\n\r\n\r\n
Before we begin, ensure that you have the following prerequisites:<\/p>\r\n\r\n\r\n\r\n
After installation, add the MongoDB bin directory to your system\u2019s PATH environment variable:<\/p>\r\n\r\n\r\n\r\n
C:\\Program Files\\MongoDB\\Server\\4.4\\bin<\/code><\/i>).<\/li>\r\n - Click OK<\/strong> to save the changes.<\/p>\r\n<\/ul>\r\n\r\n\r\n\r\n
Step 4: Create a Data Directory<\/h2>\r\n\r\n\r\n\r\n
Create a directory where MongoDB will store its data. For example, create a folder named data in the root of your C drive (e.g., C:\\data<\/code><\/i>).<\/p>\r\n\r\n\r\n\r\nStep 5: Start MongoDB<\/h3>\r\n\r\n\r\n\r\n\r\n - Open the Command Prompt as an administrator.<\/li>\r\n
- Navigate to the MongoDB bin folder using the
cd<\/code><\/i> command (e.g., cd C:\\Program Files\\MongoDB\\Server\\4.4\\bin<\/code><\/i>).<\/li>\r\n - Run the following command to start the MongoDB server:\r\n
mongod.exe –dbpath C:\\data<\/blockquote>\r\n
Replace C:\\data<\/code><\/i> with the path to your data directory.<\/li>\r\n<\/ol>\r\n\r\n\r\n\r\nStep 6: Verify MongoDB Installation<\/h3>\r\n\r\n\r\n\r\n\r\n - Open another Command Prompt window.<\/li>\r\n
- Navigate to the MongoDB bin folder.<\/li>\r\n
- Run the following command to connect to the MongoDB shell:\r\n
mongo<\/blockquote>\r\n
You should see the MongoDB shell prompt (><\/i><\/code>). Congratulations! MongoDB is installed and running.<\/li>\r\n<\/ol>\r\n\r\n\r\n\r\nConclusion<\/h2>\r\n\r\n\r\n\r\n
In this blog post, we covered the installation steps for MongoDB on Windows 10. Now you\u2019re ready to explore MongoDB and build powerful applications. Happy coding! \ud83d\ude80<\/p>\r\n\r\n","protected":false},"excerpt":{"rendered":"
MongoDB is a popular NoSQL database that provides flexibility, scalability, […]<\/p>\n","protected":false},"author":1,"featured_media":4515,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[97],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/zinisoft.net\/vi\/wp-json\/wp\/v2\/posts\/951"}],"collection":[{"href":"https:\/\/zinisoft.net\/vi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zinisoft.net\/vi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zinisoft.net\/vi\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zinisoft.net\/vi\/wp-json\/wp\/v2\/comments?post=951"}],"version-history":[{"count":2,"href":"https:\/\/zinisoft.net\/vi\/wp-json\/wp\/v2\/posts\/951\/revisions"}],"predecessor-version":[{"id":4516,"href":"https:\/\/zinisoft.net\/vi\/wp-json\/wp\/v2\/posts\/951\/revisions\/4516"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/zinisoft.net\/vi\/wp-json\/wp\/v2\/media\/4515"}],"wp:attachment":[{"href":"https:\/\/zinisoft.net\/vi\/wp-json\/wp\/v2\/media?parent=951"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zinisoft.net\/vi\/wp-json\/wp\/v2\/categories?post=951"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zinisoft.net\/vi\/wp-json\/wp\/v2\/tags?post=951"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}