MongoDB installation starts
The download and installation of MongoDB is the same as the usual app.
MongoDB Preparation work:
1. Create two folders in the directory where Mongodb is installed: for example: mongodb\data\db
Mongodb\data\log\mongod.log
Here Mongod.log is a file formatted as log; DB is a folder
2, modify the configuration file, in the MongoDB folder to find mongod.cfg files, if you do not build one, the content will be modified to:
Systemlog:
Destination:file
Path:e:\python_pachong_system_install\mongodb\data\log\mongod.log (the path here is the path of the Mongod.log file you created yourself)
Storage
DBPATH:E:\PYTHON_PACHONG_SYSTEM_INSTALL\MONGODB\DATA\DB (the path here is the DB folder path you created yourself)
3. Configure Environment variables
4, start the Mongodb\bin in the Mongod.exe
5. Installing MongoDB Service
Command: E:\python_pachong_system_install\MongoDB\bin\mongod.exe--config e:\python_pachong_system_install\mongodb/ Mongod.cfg--install
6. Start the service:
Command: net start MongoDB
7. Close service: net stop MongoDB
MongoDB installation starts