mongodb 3.0.2與wiredTiger儲存引擎安裝測試
[[email protected] local]#
[[email protected] local]# rm -fR /data/mongodb30/
[[email protected] local]# mkdir -p /data/mongodb30/{db,logs}
[[email protected] local]# touch /data/mongodb30/logs/mongodb.log
[[email protected] local]# chown -R mongodb:mongodb /data/mongodb30/
[[email protected] local]#
[[email protected] local]# vim /data/mongodb30/mongodb30.conf
[[email protected] local]#
[[email protected] local]#
[[email protected] local]# cat /data/mongodb30/mongodb30.conf
storageEngine = wiredTiger
wiredTigerCacheSizeGB = 2
syncdelay = 30
wiredTigerCollectionBlockCompressor = Snappy
port=38019
dbpath=/data/mongodb30/db
oplogSize=2048
logpath=/data/mongodb30/logs/mongodb.log
logappend=true
fork=true
rest=true
journal = true
[ [email protected] local]#
[[email protected] local]# chown -R mongodb:mongodb /data/mongodb30/
[[email protected] local]#
[[email protected] local]# su - mongodb
[[email protected] ~]$
[[email protected] ~]$ /usr/local/mongodb30/bin/mongod --config /data/mongodb30/mongodb30.conf
2015-10-27T11:06:12.889+0800 F CONTROL Failed global initialization: BadValue storage.wiredTiger.collectionConfig.blockCompressor must be a string of the format: (none/snappy/zlib)
[ [email protected] ~]$ sed -i 's/Snappy/snappy/g' /data/mongodb30/mongodb30.conf
[[email protected] ~]$
[[email protected] ~]$ /usr/local/mongodb30/bin/mongod --config /data/mongodb30/mongodb30.conf
2015-10-27T11:07:04.640+0800 I CONTROL ** WARNING: --rest is specified without --httpinterface,
2015-10-27T11:07:04.640+0800 I CONTROL ** enabling http interface
about to fork child process, waiting until server is ready for connections.
forked process: 3098
child process started successfully, parent exiting
[[email protected] ~]$
[[email protected] ~]$ ps -ef | grep mysql
mongodb 3344 3063 0 11:42 pts/0 00:00:00 grep mysql
[[email protected] ~]$
[[email protected] ~]$
[[email protected] ~]$ ps -ef|grep mongodb
mongodb 2953 1 0 11:00 ? 00:00:16 /usr/local/mongodb26/bin/mongod --config /data/mongodb26/mongodb26.conf
root 3062 2802 0 11:05 pts/0 00:00:00 su - mongodb
mongodb 3063 3062 0 11:05 pts/0 00:00:00 -bash
mongodb 3098 1 0 11:07 ? 00:00:13 /usr/local/mongodb30/bin/mongod --config /data/mongodb30/mongodb30.conf
mongodb 3346 3063 0 11:42 pts/0 00:00:00 ps -ef
mongodb 3347 3063 0 11:42 pts/0 00:00:00 grep mongodb
[[email protected] ~]$
[[email protected] ~]$
[[email protected] ~]$ /usr/local/mongodb30/bin/mongo --port=38019
MongoDB shell version: 3.0.2
connecting to: 127.0.0.1:38019/test
Server has startup warnings:
2015-10-27T11:07:04.640+0800 I CONTROL ** WARNING: --rest is specified without --httpinterface,
2015-10-27T11:07:04.640+0800 I CONTROL ** enabling http interface
>
> show dbs;
local 0.000GB
> use admin;
switched to db admin
> show collections;
>
>
> db.serverStatus()
{
"host" : "test07:38019",
"version" : "3.0.2",
"process" : "mongod",
"pid" : NumberLong(3098),
"uptime" : 2697,
"uptimeMillis" : NumberLong(2697265),
"uptimeEstimate" : 2457,
"localTime" : ISODate("2015-10-27T03:52:01.900Z"),
"asserts" : {
"regular" : 0,
"warning" : 0,
"msg" : 0,
"user" : 0,
"rollovers" : 0
},
"connections" : {
"current" : 1,
"available" : 818,
"totalCreated" : NumberLong(2)
},
"cursors" : {
"note" : "deprecated, use server status metrics",
"clientCursors_size" : 0,
"totalOpen" : 0,
"pinned" : 0,
"totalNoTimeout" : 0,
"timedOut" : 0
},
"extra_info" : {
"note" : "fields vary by platform",
"heap_usage_bytes" : 31212656,
"page_faults" : 0
},
"globalLock" : {
"totalTime" : NumberLong("2697266000"),
"currentQueue" : {
"total" : 0,
"readers" : 0,
"writers" : 0
},
"activeClients" : {
"total" : 8,
"readers" : 0,
"writers" : 0
}
},
"locks" : {
"Global" : {
"acquireCount" : {
"r" : NumberLong(724),
"w" : NumberLong(2),
"W" : NumberLong(4)
}
},
"Database" : {
"acquireCount" : {
"r" : NumberLong(723),
"R" : NumberLong(1),
"W" : NumberLong(2)
}
},
"Collection" : {
"acquireCount" : {
"r" : NumberLong(722)
}
}
},
"network" : {
"bytesIn" : 1371,
"bytesOut" : 3116,
"numRequests" : 18
},
"opcounters" : {
"insert" : 0,
"query" : 1,
"update" : 0,
"delete" : 0,
"getmore" : 0,
"command" : 19
},
"opcountersRepl" : {
"insert" : 0,
"query" : 0,
"update" : 0,
"delete" : 0,
"getmore" : 0,
"command" : 0
},
"storageEngine" : {
"name" : "wiredTiger"
},
"wiredTiger" : {
"uri" : "statistics:",
"LSM" : {
"sleep for LSM checkpoint throttle" : 0,
"sleep for LSM merge throttle" : 0,
"rows merged in an LSM tree" : 0,
"application work units currently queued" : 0,
"merge work units currently queued" : 0,
"tree queue hit maximum" : 0,
"switch work units currently queued" : 0,
"tree maintenance operations scheduled" : 0,
"tree maintenance operations discarded" : 0,
"tree maintenance operations executed" : 0
},
"async" : {
"number of allocation state races" : 0,
"number of operation slots viewed for allocation" : 0,
"current work queue length" : 0,
"number of flush calls" : 0,
"number of times operation allocation failed" : 0,
"maximum work queue length" : 0,
"number of times worker found no work" : 0,
"total allocations" : 0,
"total compact calls" : 0,
"total insert calls" : 0,
"total remove calls" : 0,
"total search calls" : 0,
"total update calls" : 0
},
"block-manager" : {
"mapped bytes read" : 0,
"bytes read" : 12288,
"bytes written" : 126976,
"mapped blocks read" : 0,
"blocks pre-loaded" : 0,
"blocks read" : 3,
"blocks written" : 27
},
"cache" : {
"tracked dirty bytes in the cache" : 0,
"tracked bytes belonging to internal pages in the cache" : 1245,
"bytes currently in the cache" : 14644,
"tracked bytes belonging to leaf pages in the cache" : 2147482403,
"maximum bytes configured" : 2147483648,
"tracked bytes belonging to overflow pages in the cache" : 0,
"bytes read into cache" : 0,
"bytes written from cache" : 20178,
"pages evicted by application threads" : 0,
"checkpoint blocked page eviction" : 0,
"unmodified pages evicted" : 0,
"page split during eviction deepened the tree" : 0,
"modified pages evicted" : 0,
"pages selected for eviction unable to be evicted" : 0,
"pages evicted because they exceeded the in-memory maximum" : 0,
"pages evicted because they had chains of deleted items" : 0,
"failed eviction of pages that exceeded the in-memory maximum" : 0,
"hazard pointer blocked page eviction" : 0,
"internal pages evicted" : 0,
"maximum page size at eviction" : 0,
"eviction server candidate queue empty when topping up" : 0,
"eviction server candidate queue not empty when topping up" : 0,
"eviction server evicting pages" : 0,
"eviction server populating queue, but not evicting pages" : 0,
"eviction server unable to reach eviction goal" : 0,
"pages split during eviction" : 0,
"pages walked for eviction" : 0,
"eviction worker thread evicting pages" : 0,
"in-memory page splits" : 0,
"percentage overhead" : 8,
"tracked dirty pages in the cache" : 0,
"pages currently held in the cache" : 10,
"pages read into cache" : 0,
"pages written from cache" : 16
},
"connection" : {
"pthread mutex condition wait calls" : 59275,
"files currently open" : 7,
"memory allocations" : 21765,
"memory frees" : 19667,
"memory re-allocations" : 64,
"total read I/Os" : 8,
"pthread mutex shared lock read-lock calls" : 1336,
"pthread mutex shared lock write-lock calls" : 2958,
"total write I/Os" : 141
},
"cursor" : {
"cursor create calls" : 568,
"cursor insert calls" : 24,
"cursor next calls" : 12,
"cursor prev calls" : 3,
"cursor remove calls" : 0,
"cursor reset calls" : 119,
"cursor search calls" : 604,
"cursor search near calls" : 3,
"cursor update calls" : 0
},
"data-handle" : {
"connection dhandles swept" : 0,
"connection candidate referenced" : 0,
"connection sweeps" : 269,
"connection time-of-death sets" : 1,
"session dhandles swept" : 0,
"session sweep attempts" : 56
},
"log" : {
"log buffer size increases" : 0,
"total log buffer size" : 1048576,
"log bytes of payload data" : 8051,
"log bytes written" : 18560,
"yields waiting for previous log file close" : 0,
"total size of compressed records" : 5113,
"total in-memory size of compressed records" : 9524,
"log records too small to compress" : 91,
"log records not compressed" : 5,
"log records compressed" : 6,
"maximum log file size" : 104857600,
"pre-allocated log files prepared" : 1,
"number of pre-allocated log files to create" : 1,
"pre-allocated log files used" : 0,
"log read operations" : 0,
"log release advances write LSN" : 102,
"records processed by log scan" : 0,
"log scan records requiring two reads" : 0,
"log scan operations" : 0,
"consolidated slot closures" : 0,
"logging bytes consolidated" : 0,
"consolidated slot joins" : 0,
"consolidated slot join races" : 0,
"slots selected for switching that were unavailable" : 0,
"record size exceeded maximum" : 0,
"failed to find a slot large enough for record" : 0,
"consolidated slot join transitions" : 0,
"log sync operations" : 92,
"log sync_dir operations" : 1,
"log server thread advances write LSN" : 0,
"log write operations" : 102
},
"reconciliation" : {
"page reconciliation calls" : 16,
"page reconciliation calls for eviction" : 0,
"split bytes currently awaiting free" : 0,
"split objects currently awaiting free" : 0
},
"session" : {
"open cursor count" : 54,
"open session count" : 59
},
"thread-yield" : {
"page acquire busy blocked" : 0,
"page acquire eviction blocked" : 0,
"page acquire locked blocked" : 0,
"page acquire read blocked" : 0,
"page acquire time sleeping (usecs)" : 0
},
"transaction" : {
"transaction begins" : 50,
"transaction checkpoints" : 89,
"transaction checkpoint generation" : 89,
"transaction checkpoint currently running" : 0,
"transaction checkpoint max time (msecs)" : 16,
"transaction checkpoint min time (msecs)" : 0,
"transaction checkpoint most recent time (msecs)" : 0,
"transaction checkpoint total time (msecs)" : 52,
"transactions committed" : 3,
"transaction failures due to cache overflow" : 0,
"transaction range of IDs currently pinned by a checkpoint" : 0,
"transaction range of IDs currently pinned" : 1,
"transactions rolled back" : 46
},
"concurrentTransactions" : {
"write" : {
"out" : 0,
"available" : 128,
"totalTickets" : 128
},
"read" : {
"out" : 1,
"available" : 127,
"totalTickets" : 128
}
}
},
"writeBacksQueued" : false,
"mem" : {
"bits" : 64,
"resident" : 37,
"virtual" : 339,
"supported" : true,
"mapped" : 0,
"mappedWithJournal" : 0
},
"metrics" : {
"commands" : {
"getLog" : {
"failed" : NumberLong(0),
"total" : NumberLong(2)
},
"isMaster" : {
"failed" : NumberLong(0),
"total" : NumberLong(10)
},
"listCollections" : {
"failed" : NumberLong(0),
"total" : NumberLong(1)
},
"listDatabases" : {
"failed" : NumberLong(0),
"total" : NumberLong(1)
},
"replSetGetStatus" : {
"failed" : NumberLong(2),
"total" : NumberLong(2)
},
"serverStatus" : {
"failed" : NumberLong(0),
"total" : NumberLong(1)
},
"whatsmyuri" : {
"failed" : NumberLong(0),
"total" : NumberLong(2)
}
},
"cursor" : {
"timedOut" : NumberLong(0),
"open" : {
"noTimeout" : NumberLong(0),
"pinned" : NumberLong(0),
"total" : NumberLong(0)
}
},
"document" : {
"deleted" : NumberLong(0),
"inserted" : NumberLong(0),
"returned" : NumberLong(0),
"updated" : NumberLong(0)
},
"getLastError" : {
"wtime" : {
"num" : 0,
"totalMillis" : 0
},
"wtimeouts" : NumberLong(0)
},
"operation" : {
"fastmod" : NumberLong(0),
"idhack" : NumberLong(0),
"scanAndOrder" : NumberLong(0),
"writeConflicts" : NumberLong(0)
},
"queryExecutor" : {
"scanned" : NumberLong(0),
"scannedObjects" : NumberLong(0)
},
"record" : {
"moves" : NumberLong(0)
},
"repl" : {
"apply" : {
"batches" : {
"num" : 0,
"totalMillis" : 0
},
"ops" : NumberLong(0)
},
"buffer" : {
"count" : NumberLong(0),
"maxSizeBytes" : 268435456,
"sizeBytes" : NumberLong(0)
},
"network" : {
"bytes" : NumberLong(0),
"getmores" : {
"num" : 0,
"totalMillis" : 0
},
"ops" : NumberLong(0),
"readersCreated" : NumberLong(0)
},
"preload" : {
"docs" : {
"num" : 0,
"totalMillis" : 0
},
"indexes" : {
"num" : 0,
"totalMillis" : 0
}
}
},
"storage" : {
"freelist" : {
"search" : {
"bucketExhausted" : NumberLong(0),
"requests" : NumberLong(0),
"scanned" : NumberLong(0)
}
}
},
"ttl" : {
"deletedDocuments" : NumberLong(0),
"passes" : NumberLong(44)
}
},
"ok" : 1
}
>
相關推薦
mongodb 3.0.2與wiredTiger儲存引擎安裝測試
[[email protected] local]# [[email protected] local]# rm -fR /data/mongodb30/ [[email protected] local]# mkdir -p /data/mongodb30/{db,logs}
3.0.2→3.2.12 Sharded Cluster升級(mmapv1引擎不換)
mongodb balancer upgrade前期準備: 1)3.2.12版本準備好 2)升級過程中,保證client不會修改集合元數據。例如:不能執行下列操作:sh.enableSharding()sh.shardCollection()sh.addShard()db.createCollec
linux安裝 redis(redis-3.0.2.tar.gz) 和 mongodb(mongodb-linux-x86_64-rhel62-4.0.0)
壓縮包 data 配置 查看 serve etc all linux sta 1:首先 要下載 這兩個 壓縮包 註意:liunx是否已經安裝過 gcc沒安裝的話 先安裝:yum install gcc-c++ 2:安裝 redis:redis-3.0.2.tar.gz
mysql學習與提高2:mysql儲存引擎
目錄 儲存引擎 有哪些儲存引擎 如何檢視儲存引擎 InnoDB MyISAM MyISAM 與InnoDB比較 總結 儲存引擎 什麼是儲存引擎呢? 儲存引擎說白了就是如何儲存資料、如何為儲存的資料建立索引和如何更新、查詢資料等技術的實現方法。 有哪些儲
MongoDB技術分享:WiredTiger儲存引擎
內容來源:2018 年 10 月 27 日,MongoDB中文社群聯席主席郭遠威在“2018年MongoDB中文社群 廣州大會”進行《WiredTiger儲存引擎介紹》的演講分享。IT 大咖說作為獨家視訊合作方,經主辦方和講者審閱授權釋出。 閱讀字數:2969
hive 2.3.0配置與部署
配置MySQL 安裝 yum -y install mysql mysql-server mysql-devel 啟動 service mysqld start 開機啟動 chkconfig mysqld on 登入 mysql
Spring-Boot 整合 MongoDB 3.4 實現簡單物件儲存與查詢
搜尋spring-boot依賴的mongodb的包 點進去 以上教大家如何根據一項技術,去搜索其在Spring-Boot專案中對應的依賴 一、專案目錄結構圖 怎麼簡潔怎麼來,Control
cocos2dx-3.0 中的關於物理引擎Box2D與chipmunk
~~~~我的生活,我的點點滴滴!! http://www.cocos2d-x.org/wiki/Physics 上面這個連結是官方的,我隨便翻譯了一下,其實大意就是:cocos2dx 3.0(只能確定3.0,不知道後面版本有沒有新增)中有兩種物理
Mongo3.4 Storage Engines儲存引擎(將MongoDB例項更改為WiredTiger儲存引擎)
本教程提供了改變獨立MongoDB例項的儲存引擎為wiredtiger儲存引擎的概述。 注意: 本教程使用mongodump和mongorestore工具匯出和匯入資料,確保MongoDB元件安裝在你的系統之中,另外,確保使用WiredTiger執行的MongoDB例項有足
Redis實戰(二)CentOS 7上搭建redis-3.0.2
str 進程 ps 禁用 安裝redis 結果 redis 啟動服務 pro bin 1.安裝redis wget http://download.redis.io/releases/redis-3.0.2.tar.gz tar zxvf redis-3.0.2.tar
MongoDB 3.0副本集搭建
mongodb replication 副本集 集群 主從 環境配置MongoDB安裝下載yum源配置wget https://repo.mongodb.org/yum/redhat/mongodb-org-3.0.repo mv mongodb-org-3.0.repo /etc/y
nTrun(3.0.2)Win+R模式快速啟動工具
技術分享 html ctrl VM src 下載鏈接 HR hang targe 今天雞哥分享一款快速啟動工具,他最大的特點是利用Win+R按鍵來實現快速啟動,相比需要鼠標點擊,win+R模式似乎更加快捷,並且顯得逼格非常高。nTrun 與 Win+R 運行完美融合,你只要
【ECLIPSE 二】eclipse java web 版本修改問題 3.0-2.5
這個是正常修改的,但是高版本向低版本改的時候有會報錯:cannot change version of project facet dynamic web module to 2.5 可以修改專案中的 .settings/org.eclipse.wst.
StarUML 3.0.2安裝啟用
文章參考:https://blog.csdn.net/sam_shan/article/details/80585240 1.下載StarUML:http://staruml.io/,一直下一步安裝。 2.安裝Node.js,安裝npm。詳見: 3.安裝asar。詳見: 4.解壓app.asar 1
《MySQL技術內幕:InnoDB儲存引擎》——第2章 InnoDB儲存引擎
mysql> show engine innodb status;//檢視innodb儲存引擎狀態 mysql> show variables like 'innodb_version';//檢視innodb儲存引擎版本 mysql> show variables like
[轉]MongoDB 3.0新增特性一覽
引言在歷經版本號修改(2.8版本直接跳到3.0版本)和11個rc版本之後,MongoDB3.0於2015年3月3日正式釋出。可以毫不誇張的說,該版本的新增特性標誌著MongoDB這款典型的NoSQL資料庫已經進入了一個全新的發展階段。本文以下內容會逐個盤點3.0版本的新增特性。外掛式儲存引擎APIMongoD
阿里雲centOS7.4 安裝配置 vsftpd 3.0.2
1、阿里雲後臺 開放 21 埠 在阿里雲後臺新增安全組規則,開放ftp 21 埠 2、安裝vsftpd 安裝 yum install -y vsftpd 啟動vsftpd systemctl start vsftpd.service 開機自啟動vsftpd sy
Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.0.2:resources
遇見一個很奇怪的問題,專案能正常執行,但是install和打包不成功,後來在網上找了很久解決方案才解決。 原部落格地址:https://blog.csdn.net/w19980426/article/details/81275461 1.進入本地倉庫的repository\org\apach
vue-cli 3.0 版本與3.0以下版本在搭建專案時的區別
vue-cli 3.0 正式版於 8月10號釋出,但是3.0 與 2.0 版本在搭建專案時到底有何不同呢?下面做一下簡單的介紹,希望可以幫到有需要的朋友 1、 全域性安裝vu-cli 3.0 npm install -g @vue/cli (如果之前安裝了2.0版本,先
Servlet 3.0註解與web.xml配置引發的tomcat啟動報錯
Caused by: java.lang.IllegalArgumentException: The servlets named [FindWordServlet] and [com.heima.servlet.FindWordServlet] are both mapped to the