在win10環(huán)境下安裝mongodb,安裝路徑為C:Program FilesMongoDBServer4.0\
以管理員身份運行cmd,在C盤下創(chuàng)建mongodbdatadb及mongodblogmongo.log文件
在C:Program FilesMongoDBServer4.0bin下運行mongod --dbpath C:mongodbdatadb指定mongodb數(shù)據(jù)緩存路徑
cmd中展示為:
C:Program FilesMongoDBServer4.0bin>mongod --dbpath C:mongodbdatadb
2018-08-16T14:58:46.980+0800 I CONTROL [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'
2018-08-16T14:58:47.372+0800 I CONTROL [initandlisten] MongoDB starting : pid=1200 port=27017 dbpath=C:mongodbdatadb 64-bit host=DESKTOP-UCTKPJL
2018-08-16T14:58:47.372+0800 I CONTROL [initandlisten] targetMinOS: Windows 7/Windows Server 2008 R2
2018-08-16T14:58:47.374+0800 I CONTROL [initandlisten] db version v4.0.0
2018-08-16T14:58:47.376+0800 I CONTROL [initandlisten] git version: 3b07af3d4f471ae89e8186d33bbb1d5259597d51
2018-08-16T14:58:47.377+0800 I CONTROL [initandlisten] allocator: tcmalloc
2018-08-16T14:58:47.377+0800 I CONTROL [initandlisten] modules: none
2018-08-16T14:58:47.377+0800 I CONTROL [initandlisten] build environment:
2018-08-16T14:58:47.378+0800 I CONTROL [initandlisten] distmod: 2008plus-ssl
2018-08-16T14:58:47.378+0800 I CONTROL [initandlisten] distarch: x86_64
2018-08-16T14:58:47.378+0800 I CONTROL [initandlisten] target_arch: x86_64
2018-08-16T14:58:47.379+0800 I CONTROL [initandlisten] options: { storage: { dbPath: "C:mongodbdatadb" } }
2018-08-16T14:58:47.438+0800 I STORAGE [initandlisten] Detected data files in C:mongodbdatadb created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'.
2018-08-16T14:58:47.439+0800 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=7618M,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-08-16T14:58:47.619+0800 I STORAGE [initandlisten] WiredTiger message 1534402727:618697, txn-recover: Main recovery loop: starting at 5/9600
2018-08-16T14:58:47.756+0800 I STORAGE [initandlisten] WiredTiger message 1534402727:756428, txn-recover: Recovering log 5 through 6
2018-08-16T14:58:47.838+0800 I STORAGE [initandlisten] WiredTiger message 1534402727:838275, txn-recover: Recovering log 6 through 6
2018-08-16T14:58:47.907+0800 I STORAGE [initandlisten] WiredTiger message 1534402727:907659, txn-recover: Set global recovery timestamp: 0
2018-08-16T14:58:47.952+0800 I RECOVERY [initandlisten] WiredTiger recoveryTimestamp. Ts: Timestamp(0, 0)
2018-08-16T14:58:47.996+0800 I CONTROL [initandlisten]
2018-08-16T14:58:47.997+0800 I CONTROL [initandlisten] ** WARNING: Access control is not enabled for the database.
2018-08-16T14:58:47.999+0800 I CONTROL [initandlisten] ** Read and write access to data and configuration is unrestricted.
2018-08-16T14:58:48.002+0800 I CONTROL [initandlisten]
2018-08-16T14:58:48.002+0800 I CONTROL [initandlisten] ** WARNING: This server is bound to localhost.
2018-08-16T14:58:48.003+0800 I CONTROL [initandlisten] ** Remote systems will be unable to connect to this server.
2018-08-16T14:58:48.003+0800 I CONTROL [initandlisten] ** Start the server with --bind_ip <address> to specify which IP
2018-08-16T14:58:48.003+0800 I CONTROL [initandlisten] ** addresses it should serve responses from, or with --bind_ip_all to
2018-08-16T14:58:48.004+0800 I CONTROL [initandlisten] ** bind to all interfaces. If this behavior is desired, start the
2018-08-16T14:58:48.004+0800 I CONTROL [initandlisten] ** server with --bind_ip 127.0.0.1 to disable this warning.
2018-08-16T14:58:48.004+0800 I CONTROL [initandlisten]
2018-08-16T14:58:48.737+0800 I FTDC [initandlisten] Initializing full-time diagnostic data capture with directory 'C:/mongodb/data/db/diagnostic.data'
2018-08-16T14:58:48.747+0800 I NETWORK [initandlisten] waiting for connections on port 27017
顯示等待鏈接
重新以管理員身份打開cmd,進入到C:Program FilesMongoDBServer4.0bin下運行mongo開啟mongdb鏈接
報鏈接失敗
C:Program FilesMongoDBServer4.0bin>mongo
MongoDB shell version v4.0.0
connecting to: mongodb://127.0.0.1:27017
2018-08-16T15:00:44.465+0800 E QUERY [js] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed: NetworkTimeout: Error connecting to 127.0.0.1:27017 :: caused by :: Socket operation timed out :
connect@src/mongo/shell/mongo.js:251:13
@(connect):1:6
exception: connect failed
北大青鳥APTECH成立于1999年。依托北京大學優(yōu)質雄厚的教育資源和背景,秉承“教育改變生活”的發(fā)展理念,致力于培養(yǎng)中國IT技能型緊缺人才,是大數(shù)據(jù)專業(yè)的國家
北大青鳥中博軟件學院創(chuàng)立于2003年,作為華東區(qū)著名互聯(lián)網(wǎng)學院和江蘇省首批服務外包人才培訓基地,中博成功培育了近30000名軟件工程師走向高薪崗位,合作企業(yè)超4
中公教育集團創(chuàng)建于1999年,經(jīng)過二十年潛心發(fā)展,已由一家北大畢業(yè)生自主創(chuàng)業(yè)的信息技術與教育服務機構,發(fā)展為教育服務業(yè)的綜合性企業(yè)集團,成為集合面授教學培訓、網(wǎng)
達內(nèi)教育集團成立于2002年,是一家由留學海歸創(chuàng)辦的高端職業(yè)教育培訓機構,是中國一站式人才培養(yǎng)平臺、一站式人才輸送平臺。2014年4月3日在美國成功上市,融資1
浪潮集團項目經(jīng)理。精通Java與.NET 技術, 熟練的跨平臺面向對象開發(fā)經(jīng)驗,技術功底深厚。 授課風格 授課風格清新自然、條理清晰、主次分明、重點難點突出、引人入勝。
曾工作于聯(lián)想擔任系統(tǒng)開發(fā)工程師,曾在博彥科技股份有限公司擔任項目經(jīng)理從事移動互聯(lián)網(wǎng)管理及研發(fā)工作,曾創(chuàng)辦藍懿科技有限責任公司從事總經(jīng)理職務負責iOS教學及管理工作。
精通HTML5和CSS3;Javascript及主流js庫,具有快速界面開發(fā)的能力,對瀏覽器兼容性、前端性能優(yōu)化等有深入理解。精通網(wǎng)頁制作和網(wǎng)頁游戲開發(fā)。
具有10 年的Java 企業(yè)應用開發(fā)經(jīng)驗。曾經(jīng)歷任德國Software AG 技術顧問,美國Dachieve 系統(tǒng)架構師,美國AngelEngineers Inc. 系統(tǒng)架構師。