V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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 · 2018-09-30 17:11:02 +08:00 · 1577 次点击
    这是一个创建于 2024 天前的主题,其中的信息可能已经有所发展或是发生改变。

    如题,在 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 条回复    2018-09-30 17:20:39 +08:00
    867810107
        1
    867810107  
    OP
       2018-09-30 17:11:32 +08:00
    言辞有些不对,应该是求大神们帮忙!
    janxin
        2
    janxin  
       2018-09-30 17:20:39 +08:00
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3825 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 05:06 · PVG 13:06 · LAX 22:06 · JFK 01:06
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.