第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

mac終端上無法啟動mongo(3.6.2)

mac終端上無法啟動mongo(3.6.2)

一只斗牛犬 2019-05-22 23:33:07
【問題】第一次使用MongoDB,安裝了但是無法通過終端進入搜索了相關資料也不知道問題所在何處希望有人能稍微指點一下,感激不盡【環(huán)境】終端:macosMongoDB:3.6.2【相關代碼】登入MongoDBhimiMacBookPro:binhimi$sudomongod--port27017--dbpath/data/db或者himiMacBookPro:binhimi$sudomongodmac的$path是設定好的了↓得到下面2018-02-12T21:01:38.228+0900ICONTROL[initandlisten]MongoDBstarting:pid=24899port=27017dbpath=/data/db64-bithost=himiMacBookPro.local2018-02-12T21:01:38.228+0900ICONTROL[initandlisten]dbversionv3.6.22018-02-12T21:01:38.228+0900ICONTROL[initandlisten]gitversion:489d177dbd0f0420a8ca04d39fd78d0a2c5394202018-02-12T21:01:38.228+0900ICONTROL[initandlisten]OpenSSLversion:OpenSSL0.9.8zc15Oct20142018-02-12T21:01:38.228+0900ICONTROL[initandlisten]allocator:system2018-02-12T21:01:38.228+0900ICONTROL[initandlisten]modules:none2018-02-12T21:01:38.228+0900ICONTROL[initandlisten]buildenvironment:2018-02-12T21:01:38.228+0900ICONTROL[initandlisten]distarch:x86_642018-02-12T21:01:38.229+0900ICONTROL[initandlisten]target_arch:x86_642018-02-12T21:01:38.229+0900ICONTROL[initandlisten]options:{net:{port:27017},storage:{dbPath:"/data/db"}}2018-02-12T21:01:38.229+0900I-[initandlisten]Detecteddatafilesin/data/dbcreatedbythe'wiredTiger'storageengine,sosettingtheactivestorageengineto'wiredTiger'.2018-02-12T21:01:38.229+0900ISTORAGE[initandlisten]wiredtiger_openconfig:create,cache_size=7680M,session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),statistics_log=(wait=0),verbose=(recovery_progress),2018-02-12T21:01:38.701+0900ISTORAGE[initandlisten]WiredTigermessage[1518436898:701666][24899:0x7fff75831300],txn-recover:Mainrecoveryloop:startingat6/48642018-02-12T21:01:38.826+0900ISTORAGE[initandlisten]WiredTigermessage[1518436898:826287][24899:0x7fff75831300],txn-recover:Recoveringlog6through72018-02-12T21:01:38.921+0900ISTORAGE[initandlisten]WiredTigermessage[1518436898:921309][24899:0x7fff75831300],txn-recover:Recoveringlog7through72018-02-12T21:01:39.125+0900ICONTROL[initandlisten]2018-02-12T21:01:39.125+0900ICONTROL[initandlisten]**WARNING:Accesscontrolisnotenabledforthedatabase.2018-02-12T21:01:39.125+0900ICONTROL[initandlisten]**Readandwriteaccesstodataandconfigurationisunrestricted.2018-02-12T21:01:39.125+0900ICONTROL[initandlisten]**WARNING:Youarerunningthisprocessastherootuser,whichisnotrecommended.2018-02-12T21:01:39.125+0900ICONTROL[initandlisten]2018-02-12T21:01:39.125+0900ICONTROL[initandlisten]**WARNING:Thisserverisboundtolocalhost.2018-02-12T21:01:39.125+0900ICONTROL[initandlisten]**Remotesystemswillbeunabletoconnecttothisserver.2018-02-12T21:01:39.125+0900ICONTROL[initandlisten]**Starttheserverwith--bind_iptospecifywhichIP2018-02-12T21:01:39.125+0900ICONTROL[initandlisten]**addressesitshouldserveresponsesfrom,orwith--bind_ip_allto2018-02-12T21:01:39.125+0900ICONTROL[initandlisten]**bindtoallinterfaces.Ifthisbehaviorisdesired,startthe2018-02-12T21:01:39.125+0900ICONTROL[initandlisten]**serverwith--bind_ip127.0.0.1todisablethiswarning.2018-02-12T21:01:39.125+0900ICONTROL[initandlisten]2018-02-12T21:01:39.131+0900IFTDC[initandlisten]Initializingfull-timediagnosticdatacapturewithdirectory'/data/db/diagnostic.data'2018-02-12T21:01:39.131+0900INETWORK[initandlisten]waitingforconnectionsonport27017這里會停留很長時間照理說這個出來之后就應該進入mongo↓但是過了很久會出現(xiàn)以下內(nèi)容2018-02-12T21:06:39.153+0900ISTORAGE[thread1]createCollection:config.system.sessionswithgeneratedUUID:c16f1163-15d8-4132-8a66-5a2e61d855b12018-02-12T21:06:39.238+0900IINDEX[thread1]buildindexon:config.system.sessionsproperties:{v:2,key:{lastUse:1},name:"lsidTTLIndex",ns:"config.system.sessions",expireAfterSeconds:1800}2018-02-12T21:06:39.238+0900IINDEX[thread1]buildingindexusingbulkmethod;buildmaytemporarilyuseupto500megabytesofRAM2018-02-12T21:06:39.260+0900IINDEX[thread1]buildindexdone.scanned0totalrecords.0secs2018-02-12T21:06:39.262+0900ICOMMAND[thread1]commandconfig.$cmdcommand:createIndexes{createIndexes:"system.sessions",indexes:[{key:{lastUse:1},name:"lsidTTLIndex",expireAfterSeconds:1800}],$db:"config"}numYields:0reslen:98locks:{Global:{acquireCount:{r:1,w:1}},Database:{acquireCount:{W:1}},Collection:{acquireCount:{w:1}}}protocol:op_msg115ms然后就沒有其他內(nèi)容了.等了半個小時也沒有變化↓如果在上面的等待的時候control+c,會出現(xiàn)以下內(nèi)容^C2018-02-12T22:04:41.601+0900ICONTROL[signalProcessingThread]gotsignal2(Interrupt:2),willterminateaftercurrentcmdends2018-02-12T22:04:41.601+0900INETWORK[signalProcessingThread]shutdown:goingtocloselisteningsockets...2018-02-12T22:04:41.601+0900INETWORK[signalProcessingThread]removingsocketfile:/tmp/mongodb-27017.sock2018-02-12T22:04:41.603+0900IFTDC[signalProcessingThread]Shuttingdownfull-timediagnosticdatacapture2018-02-12T22:04:41.605+0900ISTORAGE[signalProcessingThread]WiredTigerKVEngineshuttingdown2018-02-12T22:04:41.803+0900ISTORAGE[signalProcessingThread]shutdown:removingfslock...2018-02-12T22:04:41.805+0900ICONTROL[signalProcessingThread]nowexiting2018-02-12T22:04:41.805+0900ICONTROL[signalProcessingThread]shuttingdownwithcode:0用了其他的看似是相關的命令,也不是很清楚這代表了什么himiMacBookPro:~himi$sudo/usr/local/mongodb/bin/mongod2018-02-12T20:31:44.076+0900ICONTROL[initandlisten]MongoDBstarting:pid=24718port=27017dbpath=/data/db64-bithost=himiMacBookPro.local2018-02-12T20:31:44.076+0900ICONTROL[initandlisten]dbversionv3.6.22018-02-12T20:31:44.076+0900ICONTROL[initandlisten]gitversion:489d177dbd0f0420a8ca04d39fd78d0a2c5394202018-02-12T20:31:44.076+0900ICONTROL[initandlisten]OpenSSLversion:OpenSSL0.9.8zc15Oct20142018-02-12T20:31:44.076+0900ICONTROL[initandlisten]allocator:system2018-02-12T20:31:44.076+0900ICONTROL[initandlisten]modules:none2018-02-12T20:31:44.076+0900ICONTROL[initandlisten]buildenvironment:2018-02-12T20:31:44.076+0900ICONTROL[initandlisten]distarch:x86_642018-02-12T20:31:44.076+0900ICONTROL[initandlisten]target_arch:x86_642018-02-12T20:31:44.076+0900ICONTROL[initandlisten]options:{}2018-02-12T20:31:44.078+0900ISTORAGE[initandlisten]exceptionininitAndListen:DBPathInUse:Unabletolockthelockfile:/data/db/mongod.lock(Resourcetemporarilyunavailable).Anothermongodinstanceisalreadyrunningonthe/data/dbdirectory,terminating2018-02-12T20:31:44.078+0900ICONTROL[initandlisten]nowexiting2018-02-12T20:31:44.078+0900ICONTROL[initandlisten]shuttingdownwithcode:100【自己查找相關資料】http://www.runoob.com/mongodb...http://blog.csdn.net/xht555/a...https://stackoverflow.com/que...https://www.jianshu.com/p/116...
查看完整描述

2 回答

?
慕娘9325324

TA貢獻1783條經(jīng)驗 獲得超4個贊

mongod是開啟數(shù)據(jù)庫進程并不是mongo,實際已經(jīng)啟動了數(shù)據(jù)庫,你只需要再打開一個terminal(終端)然后輸入mongo就可以了.
mongo是mongodb管理工具,mongod是mongodb數(shù)據(jù)庫進程.
                            
查看完整回答
反對 回復 2019-05-22
?
胡說叔叔

TA貢獻1804條經(jīng)驗 獲得超8個贊

你第一張圖用mongod開機后得到下面這個信息并且一直停留在這個信息是正確的然后你需要保持這個終端不動,重新開啟一個終端輸入mongo
2018-02-12T21:01:38.228+0900ICONTROL[initandlisten]MongoDBstarting:pid=24899port=27017dbpath=/data/db64-bithost=himiMacBookPro.local2018-02-12T21:01:38.228+0900ICONTROL[initandlisten]dbversionv3.6.22018-02-12T21:01:38.228+0900ICONTROL[initandlisten]gitversion:489d177dbd0f0420a8ca04d39fd78d0a2c5394202018-02-12T21:01:38.228+0900ICONTROL[initandlisten]OpenSSLversion:OpenSSL0.9.8zc15Oct20142018-02-12T21:01:38.228+0900ICONTROL[initandlisten]allocator:system2018-02-12T21:01:38.228+0900ICONTROL[initandlisten]modules:none2018-02-12T21:01:38.228+0900ICONTROL[initandlisten]buildenvironment:2018-02-12T21:01:38.228+0900ICONTROL[initandlisten]distarch:x86_642018-02-12T21:01:38.229+0900ICONTROL[initandlisten]target_arch:x86_642018-02-12T21:01:38.229+0900ICONTROL[initandlisten]options:{net:{port:27017},storage:{dbPath:"/data/db"}}2018-02-12T21:01:38.229+0900I-[initandlisten]Detecteddatafilesin/data/dbcreatedbythe'wiredTiger'storageengine,sosettingtheactivestorageengineto'wiredTiger'.2018-02-12T21:01:38.229+0900ISTORAGE[initandlisten]wiredtiger_openconfig:create,cache_size=7680M,session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),statistics_log=(wait=0),verbose=(recovery_progress),2018-02-12T21:01:38.701+0900ISTORAGE[initandlisten]WiredTigermessage1518436898:701666,txn-recover:Mainrecoveryloop:startingat6/48642018-02-12T21:01:38.826+0900ISTORAGE[initandlisten]WiredTigermessage1518436898:826287,txn-recover:Recoveringlog6through72018-02-12T21:01:38.921+0900ISTORAGE[initandlisten]WiredTigermessage1518436898:921309,txn-recover:Recoveringlog7through72018-02-12T21:01:39.125+0900ICONTROL[initandlisten]2018-02-12T21:01:39.125+0900ICONTROL[initandlisten]**WARNING:Accesscontrolisnotenabledforthedatabase.2018-02-12T21:01:39.125+0900ICONTROL[initandlisten]**Readandwriteaccesstodataandconfigurationisunrestricted.2018-02-12T21:01:39.125+0900ICONTROL[initandlisten]**WARNING:Youarerunningthisprocessastherootuser,whichisnotrecommended.2018-02-12T21:01:39.125+0900ICONTROL[initandlisten]2018-02-12T21:01:39.125+0900ICONTROL[initandlisten]**WARNING:Thisserverisboundtolocalhost.2018-02-12T21:01:39.125+0900ICONTROL[initandlisten]**Remotesystemswillbeunabletoconnecttothisserver.2018-02-12T21:01:39.125+0900ICONTROL[initandlisten]**Starttheserverwith--bind_ip
tospecifywhichIP2018-02-12T21:01:39.125+0900ICONTROL[initandlisten]**addressesitshouldserveresponsesfrom,orwith--bind_ip_allto2018-02-12T21:01:39.125+0900ICONTROL[initandlisten]**bindtoallinterfaces.Ifthisbehaviorisdesired,startthe2018-02-12T21:01:39.125+0900ICONTROL[initandlisten]**serverwith--bind_ip127.0.0.1todisablethiswarning.2018-02-12T21:01:39.125+0900ICONTROL[initandlisten]2018-02-12T21:01:39.131+0900IFTDC[initandlisten]Initializingfull-timediagnosticdatacapturewithdirectory'/data/db/diagnostic.data'2018-02-12T21:01:39.131+0900INETWORK[initandlisten]waitingforconnectionsonport27017
                            
查看完整回答
反對 回復 2019-05-22
  • 2 回答
  • 0 關注
  • 1244 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網(wǎng)微信公眾號