【发布时间】:2019-08-14 02:20:36
【问题描述】:
我已经按照 windows 8.1 中的官方文档安装了 scrapy-splash,但是当我访问 http://localhost:8050/ 时,我收到连接被拒绝错误
运行:
docker run -p 5023:5023 -p 8050:8050 -p 8051:8051 scrapinghub/splash
这是一个 docker cmd 日志:
2019-08-14 02:09:17+0000 [-] Log opened.
2019-08-14 02:09:17.882305 [-] Splash version: 3.3.1
2019-08-14 02:09:17.886323 [-] Qt 5.9.1, PyQt 5.9.2, WebKit 602.1, sip 4.19.4, Twisted 18.9.0, Lua 5.2
2019-08-14 02:09:17.888056 [-] Python 3.5.2 (default, Nov 12 2018, 13:43:14) [GCC 5.4.0 20160609]
2019-08-14 02:09:17.891068 [-] Open files limit: 1048576
2019-08-14 02:09:17.892217 [-] Can't bump open files limit
2019-08-14 02:09:18.008683 [-] Xvfb is started: ['Xvfb', ':504837395', '-screen', '0', '1024x768x24', '-nolisten', 'tcp']
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
2019-08-14 02:09:18.572706 [-] proxy profiles support is enabled, proxy profiles path: /etc/splash/proxy-profiles
2019-08-14 02:09:18.575273 [-] memory cache: enabled, private mode: enabled, js cross-domain access: disabled
2019-08-14 02:09:19.282557 [-] verbosity=1, slots=20, argument_cache_max_entries=500, max-timeout=90.0
2019-08-14 02:09:19.291644 [-] Web UI: enabled, Lua: enabled (sandbox: enabled)
2019-08-14 02:09:19.297131 [-] Site starting on 8050
2019-08-14 02:09:19.299929 [-] Starting factory <twisted.web.server.Site object at 0x7fe5346cbcc0>
2019-08-14 02:09:19.302557 [-] Server listening on http://0.0.0.0:8050
【问题讨论】:
-
您是否尝试过更改端口,因为 docker 映像适用于我,因此很难复制错误
-
可以,但是一直监听8050,不知道改端口的正确方法。我编辑了我的帖子,希望它可以帮助你
-
它现在可以工作了
标签: python docker scrapy scrapy-splash