View more Java development environment configuration, click the "Java development environment configuration Filmography"
Wu Chapter: MongoDB installation tutorial
1) official website to download the installation package MongoDB
https://www.mongodb.com/download-center/community
The next step has been to install, the default installation directory: C: \ Program Files \ MongoDB \ Server \ 3.2
2) Profile
After installing and create data logs directory (which added a mongo.log file) in the bin directory at the same level;
Then create a file in the bin mongo.conf the same directory, configuration is as follows:
# Database path
dbpath=C:\Program Files\MongoDB\Server\3.2\data
# Log output file path
logpath=C:\Program Files\MongoDB\Server\3.2\logs\mongo.log
# Error logs are append mode
logappend=true
# Enable log file is enabled by default
journal=true
# This option can filter out some useless log information, if necessary debug set to false
quiet=true
The default port number is 27017 #
port=27017
Installation mongoDB Service: Administrator execute cmd, configure the environment variables (save mongoDB level directory path in the bin), so direct execution: mongod.exe --config "C: \ Program Files \ MongoDB \ Server \ 3.2 \ mongo.conf "--install;
Start: net start MongoDB, the default port 27017; closed: net stop MongoDB;
Remove mongoDB Service: Administrator execute cmd, configure the environment variables, so the direct execution: "C: \ Program Files \ MongoDB \ Server \ 3.2 \ bin \ mongod.exe" --remove;
Enter the browser after the start http://127.0.0.1:27017 see the return value that is explained start successfully;
May be connected through mongodb mongo.exe bin directory;
3) install a graphical interface
Baidu download studio3t can be installed, the user can add a database in studio3t, set access rights, provide a local activation:
Anywhere to add a script to activate studio3t.bat, you can run each time expired Click, configure as follows:
@echo off
ECHO reset Studio 3T using date ......
FOR /f "tokens=1,2,* " %%i IN ('reg query
"HKEY_CURRENT_USER\Software\JavaSoft\Prefs\3t\mongochef\enterprise" ^| find /V "installation" ^| find /V "HKEY"') DO ECHO yes | reg add "HKEY_CURRENT_USER\Software\JavaSoft\Prefs\3t\mongochef\enterprise" /v %%i /t REG_SZ /d ""
ECHO reset is complete, press any key to exit ......
pause> null
exit