【问题标题】:Controller.from_port is raising errorController.from_port 引发错误
【发布时间】:2015-09-04 19:20:48
【问题描述】:

我正在尝试获取茎控制器。我以sudo /etc/init.d/tor start 的身份启动了tor。

现在当我在 python 中运行时,controller = Controller.from_port() 它会引发 stem.SocketError:[Error 111] Connection refused 的异常

我环顾四周,发现如果tor没有运行,就会引发这个异常,但是我已经启动了tor。那为什么会出现这个错误呢?

谢谢。

【问题讨论】:

    标签: python sockets tor stem


    【解决方案1】:

    请提供您的 torrc,很可能您没有 ControlPort 或正在连接到 SocksPort。有关初始设置的帮助,请参阅 'hello world' tutorial

    【讨论】:

      猜你喜欢
      • 2016-01-26
      • 2020-07-12
      • 1970-01-01
      • 2018-06-28
      • 1970-01-01
      • 1970-01-01
      • 2019-04-03
      • 2014-02-20
      • 2015-07-04
      相关资源
      最近更新 更多