MongoDB 學習筆記之 mongo-connector安裝

來源:互聯網
上載者:User

標籤:nec   get   god   dev   安裝   connect   log   ima   tor安裝   

mongo-connector安裝:

 

https://github.com/mongodb-labs/mongo-connector

1. yum -y install openssl*

2.編譯安裝python3

:https://www.python.org/ftp/python/

  1. tar zxvf Python-3.5.2.tgz
  2. cd Python-3.5.2
  3. ./configure
  4. make && make install

 (在安裝結尾出可以看到pip3已經被安裝的提示,如果提示require TLS/SSL,說明沒有安裝openssl-devel)

yum install openssl-devel -y

3.pip3安裝成功後,安裝mongo-connector: 

pip3 install --target=/usr/local/pythonpip/site-packages ‘mongo-connector[elastic5]‘

 

4.啟動mongo叢集

5.啟動es叢集

6.運行串連命令:

mongo-connector -m 192.168.1.151:27017 -t 192.168.1.151:9200 -d elastic2_doc_manager

7.驗證mongoDB資料是否同步到ES:

 大功告成,可喜可賀!

MongoDB 學習筆記之 mongo-connector安裝

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.