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)咨詢
      選擇下列產(chǎn)品馬上在線溝通
      服務(wù)時間:8:30-17:00
      你可能遇到了下面的問題
      關(guān)閉右側(cè)工具欄

      新聞中心

      這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
      mongoBD學(xué)習(xí)(二)客戶端的連接

      mongo客戶端由bin/mongo啟動

      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、啟動mongoDB 客戶端進(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 客戶端進(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)程號或者kill (不加參數(shù))進(jìn)程號
      除非在特殊情況下,避免使用kill -9 進(jìn)程號

      3、重新啟動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

      天臺ssl適用于網(wǎng)站、小程序/APP、API接口等需要進(jìn)行數(shù)據(jù)傳輸應(yīng)用場景,ssl證書未來市場廣闊!成為創(chuàng)新互聯(lián)建站的ssl證書銷售渠道,可以享受市場價格4-6折優(yōu)惠!如果有意向歡迎電話聯(lián)系或者加微信:028-86922220(備注:SSL證書合作)期待與您的合作!

      5、啟動客戶端

      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
      >


      分享名稱:mongoBD學(xué)習(xí)(二)客戶端的連接
      分享鏈接:http://www.ef60e0e.cn/article/pppdph.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>

        汽车| 舞钢市| 惠来县| 江北区| 修文县| 荆州市| 棋牌| 正安县| 榆社县| 平武县| 开原市| 恩平市| 浠水县| 思茅市| 旬邑县| 建宁县| 龙岩市| 通道| 麟游县| 衡阳市| 邵阳县| 遂平县| 许昌县| 莱芜市| 修水县| 绵阳市| 肥乡县| 巴塘县| 龙海市| 锡林浩特市| 县级市| 鸡东县| 新河县| 敦化市| 永仁县| 讷河市| 丘北县| 邵东县| 梁山县| 安乡县| 闽侯县|