1. <ul id="0c1fb"></ul>

      <noscript id="0c1fb"><video id="0c1fb"></video></noscript>
      <noscript id="0c1fb"><listing id="0c1fb"><thead id="0c1fb"></thead></listing></noscript>

      99热在线精品一区二区三区_国产伦精品一区二区三区女破破_亚洲一区二区三区无码_精品国产欧美日韩另类一区

      RELATEED CONSULTING
      相關(guān)咨詢(xún)
      選擇下列產(chǎn)品馬上在線溝通
      服務(wù)時(shí)間:8:30-17:00
      你可能遇到了下面的問(wèn)題
      關(guān)閉右側(cè)工具欄

      新聞中心

      這里有您想知道的互聯(lián)網(wǎng)營(yíng)銷(xiāo)解決方案
      mongoBD學(xué)習(xí)(二)客戶(hù)端的連接-創(chuàng)新互聯(lián)

      mongo客戶(hù)端由bin/mongo啟動(dòng)

      0、幫助

      root@adela-vm:/opt/mongodb_simple# ./bin/mongo --help
      MongoDB shell version: 2.6.9
      usage: ./bin/mongo [options] [db address] [file names (ending in .js)]

      1、啟動(dòng)mongoDB 客戶(hù)端進(jìn)程

      root@adela-vm:/opt/mongodb_simple# ./bin/mongo 127.0.0.1:12345/test
      MongoDB shell version: 2.6.9
      connecting to: 127.0.0.1:12345/test
      Welcome to the MongoDB shell.
      For interactive help, type "help".
      For more comprehensive documentation, see
             http://docs.mongodb.org/
      Questions? Try the support group
             http://groups.google.com/group/mongodb-user
      >

      2、關(guān)閉mongoDB 客戶(hù)端進(jìn)程
      方法1:
      >db.shutdownServer()
      > db.shutdownServer()
      shutdown command only works with the admin database; try 'use admin'
      必須要admin才能使用shutdown命令

      > use admin
      switched to db admin
      > db.shutdownServer()
      2015-03-27T11:33:49.502+0800 DBClientCursor::init call() failed
      server should be down...
      2015-03-27T11:33:49.506+0800 trying reconnect to 127.0.0.1:12345 (127.0.0.1) failed
      2015-03-27T11:33:49.506+0800 warning: Failed to connect to 127.0.0.1:12345, reason: errno:111 Connection refused
      2015-03-27T11:33:49.506+0800 reconnect 127.0.0.1:12345 (127.0.0.1) failed failed couldn't connect to server 127.0.0.1:12345 (127.0.0.1), connection attempt failed
      >
      方法2:kill -15 進(jìn)程號(hào)或者kill (不加參數(shù))進(jìn)程號(hào)
      除非在特殊情況下,避免使用kill -9 進(jìn)程號(hào)

      3、重新啟動(dòng)mongo
      numactl --interleave=all bin/mongod -f conf/mongod.conf
      The program 'numactl' is currently not installed. You can install it by typing:
      apt-get install numactl

      安裝numactl
      apt-get install numactl
      root@adela-vm:/opt/mongodb_simple/log# apt-get install numactl
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      The following NEW packages will be installed:
       numactl
      0 upgraded, 1 newly installed, 0 to remove and 348 not upgraded.
      Need to get 30.1 kB of archives.
      After this operation, 135 kB of additional disk space will be used.
      Get:1 http://cn.archive.ubuntu.com/ubuntu/ trusty-updates/universe numactl amd64 2.0.9~rc5-1ubuntu3 [30.1 kB]
      Fetched 30.1 kB in 0s (62.3 kB/s)
      Selecting previously unselected package numactl.
      (Reading database ... 170689 files and directories currently installed.)
      Preparing to unpack .../numactl_2.0.9~rc5-1ubuntu3_amd64.deb ...
      Unpacking numactl (2.0.9~rc5-1ubuntu3) ...
      Processing triggers for man-db (2.6.7.1-1) ...
      Setting up numactl (2.0.9~rc5-1ubuntu3) ...

      重啟服務(wù)端
      root@adela-vm:/opt/mongodb_simple# numactl --interleave=all bin/mongod -f conf/mongod.conf
      about to fork child process, waiting until server is ready for connections.
      forked process: 4223
      child process started successfully, parent exiting

      4、查看日志
      tail mongod.log
      2015-03-27T11:42:38.343+0800 [initandlisten] waiting for connections on port 12345

      業(yè)務(wù)包括:企業(yè)網(wǎng)站建設(shè)、移動(dòng)網(wǎng)站建設(shè)商城網(wǎng)站開(kāi)發(fā)、網(wǎng)站營(yíng)銷(xiāo)推廣等服務(wù),并且涵蓋主機(jī)域名虛擬主機(jī)、云服務(wù)器、等互聯(lián)網(wǎng)基礎(chǔ)服務(wù);創(chuàng)新互聯(lián)聯(lián)建站以互聯(lián)網(wǎng)的創(chuàng)新理念,成熟完善的建站體系,開(kāi)拓進(jìn)取的精神,專(zhuān)業(yè)的解決方案和顧問(wèn)咨詢(xún)服務(wù),幫助客戶(hù)在互聯(lián)網(wǎng)時(shí)代提升形象、把握商機(jī)、實(shí)現(xiàn)價(jià)值,提高企業(yè)的核心競(jìng)爭(zhēng)力。

      5、啟動(dòng)客戶(hù)端

      root@adela-vm:/opt/mongodb_simple# ./bin/mongo 127.0.0.1:12345/test
      MongoDB shell version: 2.6.9
      connecting to: 127.0.0.1:12345/test
      >

      另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內(nèi)外云服務(wù)器15元起步,三天無(wú)理由+7*72小時(shí)售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國(guó)服務(wù)器、虛擬主機(jī)、免備案服務(wù)器”等云主機(jī)租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡(jiǎn)單易用、服務(wù)可用性高、性?xún)r(jià)比高”等特點(diǎn)與優(yōu)勢(shì),專(zhuān)為企業(yè)上云打造定制,能夠滿足用戶(hù)豐富、多元化的應(yīng)用場(chǎng)景需求。


      分享標(biāo)題:mongoBD學(xué)習(xí)(二)客戶(hù)端的連接-創(chuàng)新互聯(lián)
      文章出自:http://www.ef60e0e.cn/article/epidp.html
      99热在线精品一区二区三区_国产伦精品一区二区三区女破破_亚洲一区二区三区无码_精品国产欧美日韩另类一区
      1. <ul id="0c1fb"></ul>

        <noscript id="0c1fb"><video id="0c1fb"></video></noscript>
        <noscript id="0c1fb"><listing id="0c1fb"><thead id="0c1fb"></thead></listing></noscript>

        崇信县| 台东市| 将乐县| 丹阳市| 罗城| 拉萨市| 阿克苏市| 江都市| 邢台县| 榆社县| 东乡县| 商南县| 环江| 台中市| 辛集市| 太白县| 汝南县| 齐河县| 顺义区| 临泉县| 广汉市| 宜章县| 溧水县| 突泉县| 丘北县| 尼勒克县| 赣州市| 台安县| 武安市| 奉贤区| 乡城县| 阳原县| 汝州市| 绍兴县| 隆林| 鲁甸县| 乐都县| 迁安市| 漳平市| 民勤县| 根河市|