search

Home  >  Q&A  >  body text

数据库 - 阿里云上的ubuntu如何给mongodb设置远程链接?

做了几个爬虫,在本地的mongo做测试,但是没办法实行实施的监控,想挂在阿里云上,但是mongodb的远程链接很少,有的要么写得很复杂看不懂 要么就写得很简单不知道怎么操作~
本人是新手,虽然我也很鄙视伸手党,不过有些问题也是没办法~
有没有比较系统的答案?比如1,2,3,4 这样,不要太复杂,本人基础不好~

淡淡烟草味淡淡烟草味2792 days ago564

reply all(1)I'll reply

  • PHP中文网

    PHP中文网2017-05-02 09:21:50

    What does it mean that mongodb has few remote links? You can install mongodb on the server yourself

    Crawlers mainly require high downlink bandwidth. In fact, using an external server is not a good choice. Once the IP is blocked, there is no way to change it.
    I used to crawl several machines on the intranet, and then did port mapping on the intranet so that I could check the status externally.
    Finally, after the crawling is completed, the index is imported into the database and then synchronized to the external network.

    reply
    0
  • Cancelreply