推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
867810107
V2EX  ›  Python

proxychains 怎么连接 mongodb?

  •  
  •   867810107 · Sep 30, 2018 · 2361 views
    This topic created in 2795 days ago, the information mentioned may be changed or developed.

    如题,在 proxychains 下怎么连接本地的 mongodb ? 报错如下:

    xiaokeke@xiaokeke:~$ proxychains mongo
    ProxyChains-3.1 ( http://proxychains.sf.net)
    MongoDB shell version v4.0.2
    connecting to: mongodb://127.0.0.1:27017
    |S-chain|-<>-127.0.0.1:1080-<><>-127.0.0.1:27017-<><>-OK
    2018-09-30T17:07:40.738+0800 E QUERY    [js] Error: network error while attempting to run command 'isMaster' on host '127.0.0.1:27017'  :
    connect@src/mongo/shell/mongo.js:257:13
    @(connect):1:6
    exception: connect failed
    

    同样其实 redis 也不可以... 为什么要这样呢?因为我要爬外国网站需要在 proxychains 下来跑。 求大神们解决!

    2 replies    2018-09-30 17:20:39 +08:00
    867810107
        1
    867810107  
    OP
       Sep 30, 2018
    言辞有些不对,应该是求大神们帮忙!
    janxin
        2
    janxin  
       Sep 30, 2018
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5337 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 46ms · UTC 07:03 · PVG 15:03 · LAX 00:03 · JFK 03:03
    ♥ Do have faith in what you're doing.