Before on the 32-bit Win7 on the configuration once, success, but also reference a lot of friends, but at that time the brain heat unexpectedly did not record such a tedious process ....
OK, this time to be on the 64-bit machine to re-engage, before I racked my brains and looked up a lot of information, in the end I in 64-bit computer completely with 32 bits of that set of files to build and configuration will be how, would not error how ....
Then thought for a long time, decided to use all the 64-bit bar ... Because my JDK is loaded with 64 bits, then the Java MongoDB driver to butt 64 bits of MongoDB ...
What you need: MongoDB for Windows, vcredist_x64, PHP for Windows (this very headache, it's 64 bit is experimental stage ....) ), Apache httpd 64 (This is to be http://www.apachelounge.com/download/win64/) under this alliance's website, this alliance is very credible, there is a php5apache2_4.dll, In the post-php5.3 version, the corresponding Php5apache2_4.dll has been included in the compression package, so after the download will not have to worry about
Then about Vcredist, also say, this is Microsoft's redistributable package, have 05,08,10,12, installed after the meaning is that your computer does not have the VS software can also run these software, because the installation of these files is to provide you with a running environment, And because each version of what calls the DLL in a different way, so the new version does not represent the completion of the role and status of the lower version, so these old and new versions are installed is no problem, Microsoft official website.
Dizzy...... I got a big version of the note last night.
Forget, do not bother to fill, Apache httpd conf file of the method of reference in the Baidu experience in the post to get it, can, reference:
http://blog.csdn.net/z_cf1985/article/details/22454749
Finally appeared it works on, in Apache support PHP is the main is to add PHP directory, and then adding a php5apache2_4.dll path, in the PHP download file already have, and then set up a variety of their own path, MongoDB in accordance with the official website to get, remember to these two things to install a Windows service, so that after the start of the service manager directly to make it convenient, PHP is mainly to add some extension, as well as MongoDB driver dll, To put in the Ext folder, there is the addition of Apache to place the root directory of the Web page, presumably this ....
Then the ROCKMONGODB: must confirm that the PHP MONGO driver, if done well, will be in the localhost:80/index.php show MONGO this item. Then is the configuration Rockmongo own files, the official network of the two files are downloaded, in fact, do not set the ... Directly with that rock for Windows Rockmongo start file Double-click, will automatically pop up a webpage, is connected to the local MongoDB database, and then the default user name and password are admin
Then go to download a Java MongoDB driver, it is easy to use, add into the build path inside, and then find some information, the first in Rockmongo there manually add a database, the database inside a new collection, set up inside a new document, a few kv in the document, It's OK.
Then try to link in the Java project and then read out the contents of the document, done.