日期:2014-05-16 浏览次数:20554 次
一、安装
虑过
二、启动
1:先看一下哈,脚本不少
[root@NODEA bin]# pwd /opt/mongodb-linux-i686-2.2.0/bin [root@NODEA bin]# ls -al 总计 130636 drwxr-xr-x 2 root root 4096 10-29 20:12 . drwxr-xr-x 3 root root 4096 10-29 20:12 .. -rwxr-xr-x 1 500 500 10218372 08-29 00:00 bsondump -rwxr-xr-x 1 500 500 4073736 08-29 00:01 mongo -rwxr-xr-x 1 500 500 10264740 08-29 00:01 mongod -rwxr-xr-x 1 500 500 10268132 08-28 23:58 mongodump -rwxr-xr-x 1 500 500 10230628 08-28 23:59 mongoexport -rwxr-xr-x 1 500 500 10271636 08-29 00:00 mongofiles -rwxr-xr-x 1 500 500 10244260 08-28 23:59 mongoimport -rwxr-xr-x 1 500 500 10218308 08-29 00:00 mongooplog -rwxr-xr-x 1 500 500 10222980 08-29 00:00 mongoperf -rwxr-xr-x 1 500 500 10263396 08-28 23:59 mongorestore -rwxr-xr-x 1 500 500 6504980 08-29 00:01 mongos -rwxr-xr-x 1 500 500 10190296 08-29 00:00 mongosniff -rwxr-xr-x 1 500 500 10267588 08-28 23:59 mongostat -rwxr-xr-x 1 500 500 10222596 08-29 00:00 mongotop
2:看下help
如下,分为红色的几个部分,通用的选项一般用的比较多。
再就是副本及和分片的几个参数。其他的很少用。
[root@NODEA bin]# mongod --help
Thu Nov 1 00:21:37
Thu Nov 1 00:21:37 ** NOTE: when using MongoDB 32 bit, you are limited to about 2 gigabytes of data
Thu Nov 1 00:21:37 ** see http://blog.mongodb.org/post/137788967/32-bit-limitations
Thu Nov 1 00:21:37 ** with --journal, the limit is lower
Thu Nov 1 00:21:37
Allowed options:
General options:
-h [ --help ] show this usage information
--version show version information
-f [ --config ] arg configuration file specifying additional options
-v [ --verbose ] be more verbose (include multiple times for more
verbosity e.g. -vvvvv)
--quiet quieter output
--port arg specify port number - 27017 by default
--bind_ip arg comma separated list of ip addresses to listen on
- all local ips by default
--maxConns arg max number of simultaneous connections - 20000 by
default
--objcheck inspect client data for validity on receipt
--logpath arg log file to send write to instead of stdout - has
&nbs