First, Environment construction
About the environment, the best way to build, of course, is the script one-click Build
I am here to build on CENTOS6 x64 version of Linux, this Linux version should now be the standard version of most mainstream servers
Here's how the installation script is written:
#!/bin/bash# Software Name: mongodb# version: X64inst_home_dir=/usr/local/exe/mongodb# software image URL=http://Log.qa.huayu.nd:7777/softwares# software Name name=mongodb-linux-x86_64# Software Release version=3.0.2suffix=Gzpackage= $name-$version. $suffixsoft= $name-$versionif[!-F"$package"]; Then wget$url/$packagefiTarZXVF $packagesudo MV$soft $inst _home_dirsudoGroupadd MongoDBsudoUseradd MongoDB-g MONGODBCD/usr/local/exe;sudo Chown-R Mongodb:mongodb MongoDBsudo mkdir-p/data/Mg_datasudo mkdir-p/data/Logs$inst_home_dir/bin/mongod--dbpath=/data/mg_data--logpath/data/logs/mg_log.log-Forkexit0
Second, the basic function test
Third, benchmark performance test
IV. Application Integration Testing
How to test MongoDB