Installing MongoDB in XAMPP Windows

https://carlofontanos.com/installing-mongodb-in-xampp-windows/

 

  • Go to your c:/ drive and create a folder “mongodb
  • Download mongoDB from this link: http://www.mongodb.org/downloads (the download button is located under “Community Server” tab)
  • Select “Custom” when installing the software

mong-db-custom-installation

  • Install mongoDB in the following path: c:/mongodb
  • Go to your c:/ drive then create a new folder “data“, inside it create another folder “db
  • Start MongoDB in your command prompt by executing the following command: C:\mongodb\bin\mongod.exe

mongo-db-successfully-running

Congratulations, you have successfully installed MongoDB  in Windows.

Moving on, let us now configure XAMPP

To verify that you have successfully configured mongoDB in XAMPP, create a file in your xampp/htdocs folder, in it put the following code:

۱
<!–?php &lt;br ?–> phpinfo();

Now access this file in your browser. Ex. “localhost/testfile.php”

You should see that MongoDB is already installed:

mongodb-successful-installation

3 ماه پیش

دیدگاهتان را بنویسید

نشانی ایمیل شما منتشر نخواهد شد. بخش‌های موردنیاز علامت‌گذاری شده‌اند *

این سایت از اکیسمت برای کاهش هرزنامه استفاده می کند. بیاموزید که چگونه اطلاعات دیدگاه های شما پردازش می‌شوند.