`
gaojingsong
  • 浏览: 1182684 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
文章分类
社区版块
存档分类
最新评论

【Linux之MongoDB 32bit安装】

阅读更多

[root@hadoop0 opt]# ls

apache-flume-1.6.0-bin           ORCLfmap

apache-flume-1.6.0-bin.tar.gz    R-3.0.1

apache-flume-1.6.0-bin.tar.gz.1  R-3.0.1.tar.gz

apache-storm-0.9.6.tar.gz        redis-3.2.0

bigdata                          redis-3.2.0.tar.gz

data                             rh

elasticsearch-2.3.3              scala-2.10.5

elasticsearch-2.3.3.zip          scala-2.10.5.tgz

gitrepository                    spark-1.3.1-bin-hadoop2.6

hadoop-2.7.2.tar.gz              spark-1.3.1-bin-hadoop2.6.tgz

jdk1.7.0_79                      sqoop-1.4.6

kafka_2.11-0.9.0.1.tgz           sqoop-1.4.6.bin__hadoop-2.0.4-alpha.tar.gz

nginx-1.12.0                     zookeeper-3.4.6.tar.gz

nginx-1.12.0.tar.gz

[root@hadoop0 opt]# wget http://downloads.mongodb.org/linux/mongodb-linux-i686-3.2.15.tgz?_ga=2.156696955.1920928413.1499302082-1344395845.1499174401

--2017-07-08 00:56:16--  http://downloads.mongodb.org/linux/mongodb-linux-i686-3.2.15.tgz?_ga=2.156696955.1920928413.1499302082-1344395845.1499174401

Resolving downloads.mongodb.org... 54.230.151.203, 54.230.151.242, 54.230.151.35, ...

Connecting to downloads.mongodb.org|54.230.151.203|:80... connected.

HTTP request sent, awaiting response... 200 OK

Length: 73763360 (70M) [application/x-gzip]

Saving to: 鈓ongodb-linux-i686-3.2.15.tgz?_ga=2.156696955.1920928413.1499302082-1344395845.1499174401?

 0% [                                                                                                                                                                                                  ] 120,590     --.-K/s  eta 9h 2m   ^C

[root@hadoop0 opt]# ^C

[root@hadoop0 opt]# ^C

[root@hadoop0 opt]# ^C

[root@hadoop0 opt]# wget http://downloads.mongodb.org/linux/mongodb-linux-i686-3.2.15.tgz?_ga=2.156696955.1920928413.1499302082-1344395845.1499174401

--2017-07-08 00:57:13--  http://downloads.mongodb.org/linux/mongodb-linux-i686-3.2.15.tgz?_ga=2.156696955.1920928413.1499302082-1344395845.1499174401

Resolving downloads.mongodb.org... 52.84.167.73, 52.84.167.203, 52.84.167.147, ...

Connecting to downloads.mongodb.org|52.84.167.73|:80... connected.

HTTP request sent, awaiting response... 200 OK

Length: 73763360 (70M) [application/x-gzip]

Saving to: 鈓ongodb-linux-i686-3.2.15.tgz?_ga=2.156696955.1920928413.1499302082-1344395845.1499174401.1?

100%[=============================================>] 73,763,360   558K/s   in 2m 17s  

 

2017-07-08 00:59:31 (525 KB/s) - 鈓ongodb-linux-i686-3.2.15.tgz?_ga=2.156696955.1920928413.1499302082-1344395845.1499174401.1鈙aved [73763360/73763360]

 

[root@hadoop0 opt]# ls

apache-flume-1.6.0-bin           elasticsearch-2.3.3      mongodb-linux-i686-3.2.15.tgz?_ga=2.156696955.1920928413.1499302082-1344395845.1499174401    R-3.0.1.tar.gz      

spark-1.3.1-bin-hadoop2.6

apache-flume-1.6.0-bin.tar.gz    elasticsearch-2.3.3.zip  mongodb-linux-i686-3.2.15.tgz?_ga=2.156696955.1920928413.1499302082-1344395845.1499174401.1  

redis-3.2.0         spark-1.3.1-bin-hadoop2.6.tgz

apache-flume-1.6.0-bin.tar.gz.1  gitrepository            nginx-1.12.0                                                                 redis-3.2.0.tar.gz  sqoop-1.4.6

apache-storm-0.9.6.tar.gz        hadoop-2.7.2.tar.gz      nginx-1.12.0.tar.gz                                                     rh                  sqoop-1.4.6.bin__hadoop-2.0.4-alpha.tar.gz  bigdata                          jdk1.7.0_79              ORCLfmap                                                                                     scala-2.10.5        zookeeper-3.4.6.tar.gz

data              kafka_2.11-0.9.0.1.tgz   R-3.0.1                           scala-2.10.5.tgz

[root@hadoop0 opt]# ls -ls

total 756532

     4 drwxr-xr-x.  7 root    root         4096 May  8  1999 apache-flume-1.6.0-bin

 51320 -rw-r--r--.  1 root    root     52550402 May 21  2015 apache-flume-1.6.0-bin.tar.gz

    16 -rw-r--r--.  1 root    root        16208 May  8  1999 apache-flume-1.6.0-bin.tar.gz.1

 20520 -rw-r--r--.  1 root    root     21010966 Oct 29  2015 apache-storm-0.9.6.tar.gz

     4 drwxr-xr-x. 16 root    root         4096 Jul  6 13:38 bigdata

     4 drwxr-xr-x.  4 root    root         4096 Feb 28  1999 data

     4 drwxr-xr-x.  9 bigdata bigdata      4096 Apr 13  1999 elasticsearch-2.3.3

 26904 -rw-r--r--.  1 root    root     27546020 May 21  2016 elasticsearch-2.3.3.zip

     4 drwxr-xr-x.  3 git     git          4096 Apr  9 12:17 gitrepository

207084 -rw-r--r--.  1 root    root    212046774 Jan 26  2016 hadoop-2.7.2.tar.gz

     4 drwxr-xr-x.  8 uucp        143      4096 Apr 11  2015 jdk1.7.0_79

 34816 -rw-r--r--.  1 root    root     35650542 Feb 17  2016 kafka_2.11-0.9.0.1.tgz

   120 -rw-r--r--.  1 root    root       120590 Jul  8 00:56 mongodb-linux-i686-3.2.15.tgz?_ga=2.156696955.1920928413.1499302082-1344395845.1499174401

 72036 -rw-r--r--.  1 root    root     73763360 Jul  6 07:10 mongodb-linux-i686-3.2.15.tgz?_ga=2.156696955.1920928413.1499302082-1344395845.1499174401.1

     4 drwxr-xr-x.  9    1001    1001      4096 May  8 14:39 nginx-1.12.0

   960 -rw-r--r--.  1 root    root       980831 Apr 12 23:11 nginx-1.12.0.tar.gz

     4 drwxr-xr-x.  3 root    root         4096 Mar  4  2016 ORCLfmap

     4 drwxr-xr-x. 15 bigdata games        4096 Sep 13  2016 R-3.0.1

 24912 -rw-r--r--.  1 root    root     25508280 May 16  2013 R-3.0.1.tar.gz

     4 drwxrwxr-x.  6 root    root         4096 Apr 13  1999 redis-3.2.0

  1492 -rw-r--r--.  1 root    root      1525900 May 14  2016 redis-3.2.0.tar.gz

     4 drwxr-xr-x.  2 root    root         4096 Nov 22  2013 rh

     4 drwxrwxr-x.  9    1001    1001      4096 Feb 27  2015 scala-2.10.5

 29224 -rw-r--r--.  1 root    root     29924685 May 20  2016 scala-2.10.5.tgz

     4 drwxrwxr-x. 12    1000    1000      4096 Apr 13  1999 spark-1.3.1-bin-hadoop2.6

253308 -rw-r--r--.  1 root    root    259384921 May 20  2016 spark-1.3.1-bin-hadoop2.6.tgz

     4 drwxr-xr-x.  9 root    root         4096 Apr 27  2015 sqoop-1.4.6

 16476 -rw-r--r--.  1 root    root     16870735 Apr 29  1999 sqoop-1.4.6.bin__hadoop-2.0.4-alpha.tar.gz

 17288 -rw-r--r--.  1 root    root     17699306 Apr  1  2016 zookeeper-3.4.6.tar.gz

[root@hadoop0 opt]# rm -rf mongodb-linux-i686-3.2.15.tgz\?_ga\=2.156696955.1920928413.1499302082-1344395845.1499174401

[root@hadoop0 opt]# mv mongodb-linux-i686-3.2.15.tgz\?_ga\=2.156696955.1920928413.1499302082-1344395845.1499174401.1  mongodb-linux-i686-3.2.15.tgz

 

 

 

[root@hadoop0 opt]# ls

apache-flume-1.6.0-bin           bigdata                  gitrepository           mongodb-linux-i686-3.2.15.tgz  R-3.0.1             rh                         spark-1.3.1-bin-hadoop2.6.tgz

apache-flume-1.6.0-bin.tar.gz    data                     hadoop-2.7.2.tar.gz     nginx-1.12.0                   R-3.0.1.tar.gz      scala-2.10.5               sqoop-1.4.6

apache-flume-1.6.0-bin.tar.gz.1  elasticsearch-2.3.3      jdk1.7.0_79             nginx-1.12.0.tar.gz            redis-3.2.0         scala-2.10.5.tgz           sqoop-1.4.6.bin__hadoop-2.0.4-alpha.tar.gz

apache-storm-0.9.6.tar.gz        elasticsearch-2.3.3.zip  kafka_2.11-0.9.0.1.tgz  ORCLfmap                       redis-3.2.0.tar.gz  spark-1.3.1-bin-hadoop2.6  zookeeper-3.4.6.tar.gz

[root@hadoop0 opt]# tar -zxvf mongodb-linux-i686-3.2.15.tgz 

 

[root@hadoop0 bin]# ./mongod -help

Options:

 

General options:

  -h [ --help ]                 show this usage information

  --version                     show version information

  -f [ --config ] arg           configuration file specifying additional 

                                options

  -v [ --verbose ] [=arg(=v)]   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

  --ipv6                        enable IPv6 support (disabled by default)

  --maxConns arg                max number of simultaneous connections - 

                                1000000 by default

  --logpath arg                 log file to send write to instead of stdout - 

                                has to be a file, not directory

  --syslog                      log to system's syslog facility instead of file

                                or stdout

  --syslogFacility arg          syslog facility used for mongodb syslog message

  --logappend                   append to logpath instead of over-writing

  --logRotate arg               set the log rotation behavior (rename|reopen)

  --timeStampFormat arg         Desired format for timestamps in log messages. 

                                One of ctime, iso8601-utc or iso8601-local

  --pidfilepath arg             full path to pidfile (if not set, no pidfile is

                                created)

  --keyFile arg                 private key for cluster authentication

  --noauth                      run without security

  --setParameter arg            Set a configurable parameter

  --httpinterface               enable http interface

  --clusterAuthMode arg         Authentication mode used for cluster 

                                authentication. Alternatives are 

                                (keyFile|sendKeyFile|sendX509|x509)

  --nounixsocket                disable listening on unix sockets

  --unixSocketPrefix arg        alternative directory for UNIX domain sockets 

                                (defaults to /tmp)

  --filePermissions arg         permissions to set on UNIX domain socket file -

                                0700 by default

  --fork                        fork server process

  --auth                        run with security

  --jsonp                       allow JSONP access via http (has security 

                                implications)

  --rest                        turn on simple rest api

  --slowms arg (=100)           value of slow for profile and console log

  --profile arg                 0=off 1=slow, 2=all

  --cpu                         periodically show cpu and iowait utilization

  --sysinfo                     print some diagnostic system information

  --noIndexBuildRetry           don't retry any index builds that were 

                                interrupted by shutdown

  --noscripting                 disable scripting engine

  --notablescan                 do not allow table scans

  --shutdown                    kill a running server (for init scripts)

 

Replication options:

  --oplogSize arg               size to use (in MB) for replication op log. 

                                default is 5% of disk space (i.e. large is 

                                good)

 

Master/slave options (old; use replica sets instead):

  --master                      master mode

  --slave                       slave mode

  --source arg                  when slave: specify master as <server:port>

  --only arg                    when slave: specify a single database to 

                                replicate

  --slavedelay arg              specify delay (in seconds) to be used when 

                                applying master ops to slave

  --autoresync                  automatically resync if slave data is stale

 

Replica set options:

  --replSet arg                 arg is <setname>[/<optionalseedhostlist>]

  --replIndexPrefetch arg       specify index prefetching behavior (if 

                                secondary) [none|_id_only|all]

  --enableMajorityReadConcern   enables majority readConcern

 

Sharding options:

  --configsvr                   declare this is a config db of a cluster; 

                                default port 27019; default dir /data/configdb

  --configsvrMode arg           Controls what config server protocol is in use.

                                When set to "sccc" keeps server in legacy 

                                SyncClusterConnection mode even when the 

                                service is running as a replSet

  --shardsvr                    declare this is a shard db of a cluster; 

                                default port 27018

 

Storage options:

  --storageEngine arg           what storage engine to use - defaults to 

                                wiredTiger if no data files present

  --dbpath arg                  directory for datafiles - defaults to /data/db

  --directoryperdb              each database will be stored in a separate 

                                directory

  --noprealloc                  disable data file preallocation - will often 

                                hurt performance

  --nssize arg (=16)            .ns file size (in MB) for new databases

  --quota                       limits each database to a certain number of 

                                files (8 default)

  --quotaFiles arg              number of files allowed per db, implies --quota

  --smallfiles                  use a smaller default file size

  --syncdelay arg (=60)         seconds between disk syncs (0=never, but not 

                                recommended)

  --upgrade                     upgrade db if needed

  --repair                      run repair on all dbs

  --repairpath arg              root directory for repair files - defaults to 

                                dbpath

  --journal                     enable journaling

  --nojournal                   disable journaling (journaling is on by default

                                for 64 bit)

  --journalOptions arg          journal diagnostic options

  --journalCommitInterval arg   how often to group/batch commit (ms)

 

[root@hadoop0 bin]# cd ../

[root@hadoop0 mongodb-linux-i686-3.2.15]# vi start_mongo

#!/bin/bash

 

#author:     gaojignsong

#function:   start mongodb

#crate_date: 2017-07-04

 

bin/mongod --dbpath=/opt/data/mongdb_data/ --logpath=/opt/data/mongdb_log/mongodb.log --logappend &

~

~

 

~

"start_mongo" [New] 7L, 190C written

[root@hadoop0 mongodb-linux-i686-3.2.15]# mkdir -p /opt/data/mongdb_data/ 

[root@hadoop0 mongodb-linux-i686-3.2.15]# mkdir -p /opt/data/mongdb_log

[root@hadoop0 mongodb-linux-i686-3.2.15]# sh start_mongo 

[root@hadoop0 mongodb-linux-i686-3.2.15]# 2017-07-08T01:09:34.678+0800 I CONTROL  [main] 

2017-07-08T01:09:34.678+0800 W CONTROL  [main] 32-bit servers don't have journaling enabled by default. Please use --journal if you want durability.

2017-07-08T01:09:34.678+0800 I CONTROL  [main] 

^C

启动journal功能使用mongod --journal选项,也可以关闭--nojournal,在2.0之后的版本,journal都是默认打开的,以确保数据安全。在version < 2.0 或者32位的系统上都是默认关闭的 。因为打开journal会使用更多的内存(下面会详细介绍),而32位系统支持的内存太小,所以关闭了。 

由于Mongodb会事先初始化journal空间,而且在初始化完成之前是不会打开监听端口的,所以启动后可能会有一段时间连不上,不用紧张,查看日志,待journal初始化完成之后再连接。这里也建议,尽量使用ext4或者xfs等文件系统,诸如ext3这样的文件系统,初始化磁盘会非常慢,你会看到启动mongod之后,很长一段时间都停留在打印日志的状态,而用ext4会瞬间完成。而且Mongodb在运行时对db的空间也采用预分配的机制,所以使用更高级的文件系统是很有帮助的,防止磁盘引起的高并发下拥堵问题。 

[root@hadoop0 mongodb-linux-i686-3.2.15]# ^C

[root@hadoop0 mongodb-linux-i686-3.2.15]# ^C

[root@hadoop0 mongodb-linux-i686-3.2.15]# netstat -tnpl

Active Internet connections (only servers)

Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name   

tcp        0      0 0.0.0.0:111                 0.0.0.0:*                   LISTEN      1305/rpcbind        

tcp        0      0 0.0.0.0:4048                0.0.0.0:*                   LISTEN      1350/rpc.statd      

tcp        0      0 0.0.0.0:22                  0.0.0.0:*                   LISTEN      1539/sshd           

tcp        0      0 127.0.0.1:631               0.0.0.0:*                   LISTEN      1379/cupsd          

tcp        0      0 127.0.0.1:25                0.0.0.0:*                   LISTEN      1615/master         

tcp        0      0 :::111                      :::*                        LISTEN      1305/rpcbind        

tcp        0      0 :::22                       :::*                        LISTEN      1539/sshd           

tcp        0      0 :::39414                    :::*                        LISTEN      1350/rpc.statd      

tcp        0      0 ::1:631                     :::*                        LISTEN      1379/cupsd          

tcp        0      0 ::1:25                      :::*                        LISTEN      1615/master         

[root@hadoop0 mongodb-linux-i686-3.2.15]# vi start_mongo

#!/bin/bash

 

#author:     gaojignsong

#function:   start mongodb

#crate_date: 2017-07-04

 

bin/mongod --dbpath=/opt/data/mongdb_data/ --logpath=/opt/data/mongdb_log/mongodb.log --logappend   --journal &

~

~

 

~

"start_mongo" 7L, 202C written

[root@hadoop0 mongodb-linux-i686-3.2.15]# netstat -tnpl

Active Internet connections (only servers)

Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name   

tcp        0      0 0.0.0.0:111                 0.0.0.0:*                   LISTEN      1305/rpcbind        

tcp        0      0 0.0.0.0:4048                0.0.0.0:*                   LISTEN      1350/rpc.statd      

tcp        0      0 0.0.0.0:22                  0.0.0.0:*                   LISTEN      1539/sshd           

tcp        0      0 127.0.0.1:631               0.0.0.0:*                   LISTEN      1379/cupsd          

tcp        0      0 127.0.0.1:25                0.0.0.0:*                   LISTEN      1615/master         

tcp        0      0 :::111                      :::*                        LISTEN      1305/rpcbind        

tcp        0      0 :::22                       :::*                        LISTEN      1539/sshd           

tcp        0      0 :::39414                    :::*                        LISTEN      1350/rpc.statd      

tcp        0      0 ::1:631                     :::*                        LISTEN      1379/cupsd          

tcp        0      0 ::1:25                      :::*                        LISTEN      1615/master         

[root@hadoop0 mongodb-linux-i686-3.2.15]# sh start_mongo     

[root@hadoop0 mongodb-linux-i686-3.2.15]# netstat -tnpl

Active Internet connections (only servers)

Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name   

tcp        0      0 0.0.0.0:111                 0.0.0.0:*                   LISTEN      1305/rpcbind        

tcp        0      0 0.0.0.0:4048                0.0.0.0:*                   LISTEN      1350/rpc.statd      

tcp        0      0 0.0.0.0:22                  0.0.0.0:*                   LISTEN      1539/sshd           

tcp        0      0 127.0.0.1:631               0.0.0.0:*                   LISTEN      1379/cupsd          

tcp        0      0 127.0.0.1:25                0.0.0.0:*                   LISTEN      1615/master         

tcp        0      0 :::111                      :::*                        LISTEN      1305/rpcbind        

tcp        0      0 :::22                       :::*                        LISTEN      1539/sshd           

tcp        0      0 :::39414                    :::*                        LISTEN      1350/rpc.statd      

tcp        0      0 ::1:631                     :::*                        LISTEN      1379/cupsd          

tcp        0      0 ::1:25                      :::*                        LISTEN      1615/master         

[root@hadoop0 mongodb-linux-i686-3.2.15]# cd /opt/data/mongdb_log/

[root@hadoop0 mongdb_log]# ls

mongodb.log

[root@hadoop0 mongdb_log]# tail -f mongodb.log 

2017-07-08T01:12:39.716+0800 I CONTROL  [initandlisten] db version v3.2.15

2017-07-08T01:12:39.716+0800 I CONTROL  [initandlisten] git version: e11e3c1b9c9ce3f7b4a79493e16f5e4504e01140

2017-07-08T01:12:39.716+0800 I CONTROL  [initandlisten] allocator: tcmalloc

2017-07-08T01:12:39.716+0800 I CONTROL  [initandlisten] modules: none

2017-07-08T01:12:39.717+0800 I CONTROL  [initandlisten] build environment:

2017-07-08T01:12:39.717+0800 I CONTROL  [initandlisten]     distarch: i686

2017-07-08T01:12:39.717+0800 I CONTROL  [initandlisten]     target_arch: i386

2017-07-08T01:12:39.717+0800 I CONTROL  [initandlisten] options: { storage: { dbPath: "/opt/data/mongdb_data/", journal: { enabled: true } }, systemLog: { destination: "file", logAppend: true, path: "/opt/data/mongdb_log/mongodb.log" } }

2017-07-08T01:12:39.790+0800 I STORAGE  [initandlisten] exception in initAndListen: 28663 Cannot start server. The default storage engine 'wiredTiger' is not available with this build of mongod. Please specify a different storage engine explicitly, e.g. --storageEngine=mmapv1., terminating

2017-07-08T01:12:39.790+0800 I CONTROL  [initandlisten] dbexit:  rc: 100

^C

[root@hadoop0 mongdb_log]# ^C

[root@hadoop0 mongdb_log]# cd /opt/mongodb-linux-i686-3.2.15

[root@hadoop0 mongodb-linux-i686-3.2.15]# vi start_mongo

#!/bin/bash

 

#author:     gaojignsong

#function:   start mongodb

#crate_date: 2017-07-04

 

bin/mongod --dbpath=/opt/data/mongdb_data/ --logpath=/opt/data/mongdb_log/mongodb.log --logappend   --journal  --storageEngine wiredTiger  &

~

 

~

~

~

"start_mongo" 7L, 231C written

[root@hadoop0 mongodb-linux-i686-3.2.15]# sh start_mongo 

[root@hadoop0 mongodb-linux-i686-3.2.15]# tail -f /opt/data/mongdb_log/mongodb.log 

2017-07-08T01:15:15.518+0800 I CONTROL  [initandlisten] db version v3.2.15

2017-07-08T01:15:15.518+0800 I CONTROL  [initandlisten] git version: e11e3c1b9c9ce3f7b4a79493e16f5e4504e01140

2017-07-08T01:15:15.518+0800 I CONTROL  [initandlisten] allocator: tcmalloc

2017-07-08T01:15:15.519+0800 I CONTROL  [initandlisten] modules: none

2017-07-08T01:15:15.519+0800 I CONTROL  [initandlisten] build environment:

2017-07-08T01:15:15.519+0800 I CONTROL  [initandlisten]     distarch: i686

2017-07-08T01:15:15.519+0800 I CONTROL  [initandlisten]     target_arch: i386

2017-07-08T01:15:15.519+0800 I CONTROL  [initandlisten] options: { storage: { dbPath: "/opt/data/mongdb_data/", engine: "wiredTiger", journal: { enabled: true } }, systemLog: { destination: "file", logAppend: true, path: "/opt/data/mongdb_log/mongodb.log" } }

2017-07-08T01:15:15.596+0800 I STORAGE  [initandlisten] exception in initAndListen: 18656 Cannot start server with an unknown storage engine: wiredTiger, terminating

2017-07-08T01:15:15.596+0800 I CONTROL  [initandlisten] dbexit:  rc: 100

^C

[root@hadoop0 mongodb-linux-i686-3.2.15]# ^C

[root@hadoop0 mongodb-linux-i686-3.2.15]# ^C

[root@hadoop0 mongodb-linux-i686-3.2.15]# vi start_mongo

#!/bin/bash

 

#author:     gaojignsong

#function:   start mongodb

#crate_date: 2017-07-04

 

bin/mongod --dbpath=/opt/data/mongdb_data/ --logpath=/opt/data/mongdb_log/mongodb.log --logappend   --journal  --storageEngine mmapv1  &

~

~

~

~

~

"start_mongo" 7L, 227C written

[root@hadoop0 mongodb-linux-i686-3.2.15]# sh start_mongo 

[root@hadoop0 mongodb-linux-i686-3.2.15]# tail -f /opt/data/mongdb_log/mongodb.log 

2017-07-08T01:16:46.852+0800 I CONTROL  [initandlisten] **       32 bit builds are limited to less than 2GB of data (or less with --journal).

2017-07-08T01:16:46.852+0800 I CONTROL  [initandlisten] **       See http://dochub.mongodb.org/core/32bit

2017-07-08T01:16:46.853+0800 I CONTROL  [initandlisten] 

2017-07-08T01:16:46.854+0800 I INDEX    [initandlisten] allocating new ns file /opt/data/mongdb_data/local.ns, filling with zeroes...

2017-07-08T01:16:47.300+0800 I STORAGE  [FileAllocator] allocating new datafile /opt/data/mongdb_data/local.0, filling with zeroes...

2017-07-08T01:16:47.300+0800 I STORAGE  [FileAllocator] creating directory /opt/data/mongdb_data/_tmp

2017-07-08T01:16:47.309+0800 I STORAGE  [FileAllocator] done allocating datafile /opt/data/mongdb_data/local.0, size: 64MB,  took 0.002 secs

2017-07-08T01:16:47.330+0800 I FTDC     [initandlisten] Initializing full-time diagnostic data capture with directory '/opt/data/mongdb_data/diagnostic.data'

2017-07-08T01:16:47.330+0800 I NETWORK  [initandlisten] waiting for connections on port 27017

2017-07-08T01:16:47.330+0800 I NETWORK  [HostnameCanonicalizationWorker] Starting hostname canonicalization worker

 

[root@hadoop0 mongodb-linux-i686-3.2.15]# ^C

[root@hadoop0 mongodb-linux-i686-3.2.15]# netstat -tnpl

Active Internet connections (only servers)

Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name   

tcp        0      0 0.0.0.0:27017               0.0.0.0:*                   LISTEN      1926/bin/mongod     

tcp        0      0 0.0.0.0:111                 0.0.0.0:*                   LISTEN      1305/rpcbind        

tcp        0      0 0.0.0.0:4048                0.0.0.0:*                   LISTEN      1350/rpc.statd      

tcp        0      0 0.0.0.0:22                  0.0.0.0:*                   LISTEN      1539/sshd           

tcp        0      0 127.0.0.1:631               0.0.0.0:*                   LISTEN      1379/cupsd          

tcp        0      0 127.0.0.1:25                0.0.0.0:*                   LISTEN      1615/master         

tcp        0      0 :::111                      :::*                        LISTEN      1305/rpcbind        

tcp        0      0 :::22                       :::*                        LISTEN      1539/sshd           

tcp        0      0 :::39414                    :::*                        LISTEN      1350/rpc.statd      

tcp        0      0 ::1:631                     :::*                        LISTEN      1379/cupsd          

tcp        0      0 ::1:25                      :::*                        LISTEN      1615/master         

[root@hadoop0 mongodb-linux-i686-3.2.15]# 

 

 

 

 

 

 

 

 

 

 

 

 

0
1
分享到:
评论

相关推荐

    centos7 下安装MongoDB

    在这里,我们选择了 Linux RHEL 7 Linux 64-bit 的版本。 3. 解压 MongoDB 使用 tar 命令来解压 MongoDB 安装包,并将其移动到 /usr/local/mongodb 目录下。 4. 配置 MongoDB 创建存放数据库路径和日志文件路径...

    mongodb安装教程

    32-bit **NOTE: when using MongoDB 32bit, you are limited to about 2 gigabytes of data** Sat Jan 08 18:49:34 db version v1.6.5, pd file version 4.5 Sat Jan 08 18:49:34 git version: 0eb017e9b2828155...

    linux环境下mongodb配置文档及安装包

    linux环境下mongodb配置文档及安装包,安装之前一定要检查系统是多少位的,MongoDb区分位数使用 getconf LONG_BIT 命令查看

    mongodb-linux-x86-64bit-002

    mongodb-linux-x86-64bit-002

    mongodb-linux-x86-64bit-001

    mongodb-linux-x86-64bit-001

    mongodb 3.0 suse11 64bit 安装包

    以下是关于MongoDB 3.0在SUSE11 64bit环境下安装和使用的详细步骤及关键知识点: 1. **系统需求**:确保你的SUSE11系统是64位的,因为MongoDB 3.0提供的是64位版本的安装包。同时,检查系统资源,包括足够的磁盘...

    MongoDB(mongodb-org-server-5.0.4-1.el7.x86_64.rpm)

    MongoDB Community Server(mongodb-org-server-5.0.4-1.el7.x86_64.rpm)适用于RedHat / CentOS 7.0 MongoDB是一个基于分布式文件存储的数据库。由C++语言编写。旨在为WEB应用提供可扩展的高性能数据存储解决方案。...

    mongodb-org-server-4.2.12-1.el6.x86_64.rpm

    MongoDB org server

    NoSQL与Python学习.pdf

    在Linux环境下,比如使用RedHat Enterprise Linux 5-32bit系统,可以通过包管理器或源代码编译的方式安装MongoDB。在文档中提到的步骤包括下载、解压、配置环境变量PATH和设置MongoDB的数据库路径、日志路径等。其中...

    dbeaver-ce-21.0.1-win32.win32.x86_64.zip

    《DBeaver CE 21.0.1 for Windows 32-bit and 64-bit 简介及核心功能解析》 DBeaver CE(Community Edition)是DBeaver公司提供的一款开源、免费的数据库管理和开发工具,适用于多种数据库系统。在本压缩包文件...

    xp-git-redmine

    4. **TortoiseRedminePlugin**:`TortoiseRedminePlugin_32bit_1.1.0.8.msi`是TortoiseRedmine插件,它将Redmine集成到TortoiseGit中,允许用户直接在TortoiseGit的上下文中查看和管理Redmine项目的问题和里程碑。...

    dbeaver-ce-23.0.5-win32.win32.x86-64.zip

    《DBeaver CE 23.0.5 for Windows 64-bit:一款全面的数据库管理工具》 DBeaver CE 23.0.5-win32.win32.x86_64.zip 是一个专为Windows操作系统设计的64位版本的DBeaver Community Edition(CE)压缩包文件。DBeaver...

    lnmp:LNMP平台各软件的编译安装脚本

    lnmp自动搭建Linux+Nginx+PHP+Mysql的运行环境,以及PHP程序相关的Memcached,redis, mongodb等软件的自动安装shell脚本。目前已在centos 6.x (64bit)测试正常。各软件列表:Nginx V1.9.5Tengine V2.1.1PHP V5.5.21与...

    Bit502_frontBack

    标签“Shell”意味着这个项目可能涉及到Shell脚本,这是Unix或Linux操作系统中用于自动化任务的一种脚本语言。Shell脚本能够帮助开发者执行一系列命令,进行文件操作,或者构建复杂的系统级任务。 "Bit502_...

    MySQL入门很简单-学习笔记

    #### 三、Linux平台下安装与配置MySQL **3.1 RPM文件安装** - **安装步骤**: 1. 使用包管理器安装,如yum或dnf。 2. 启动MySQL服务。 3. 安全初始化root账户。 4. 配置防火墙规则。 **3.2 二进制文件安装** ...

    方正数码员工技术背景调查.doc

    - **安装程序/联机帮助开发技术**:评估员工创建可安装软件包(如MSI、DMG)和编写用户手册或在线帮助文档的技能。 这份技术背景调查文档全面地涵盖了软件开发人员所需的关键技能,为公司提供了评估和培养员工技术...

    mernapp:学习git

    在“mernapp:学习git”这个主题中,我们将深入探讨Git的基础知识、安装、基本命令以及它在MERN(MongoDB、Express.js、React和Node.js)堆栈开发中的应用。 1. Git基础: Git由Linus Torvalds创建,旨在改善Linux...

Global site tag (gtag.js) - Google Analytics