【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]#
上一篇: 显示器挑选经验:一看,二提,三试
下一篇: Cool n Quiet2.0 技术介绍