Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/docker/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 本地主机上的Scrapy splash连接被拒绝:8050_Python_Docker_Scrapy_Scrapy Splash - Fatal编程技术网

Python 本地主机上的Scrapy splash连接被拒绝:8050

Python 本地主机上的Scrapy splash连接被拒绝:8050,python,docker,scrapy,scrapy-splash,Python,Docker,Scrapy,Scrapy Splash,我已经按照windows 8.1中的官方文档安装了scrapy splash,但当我访问时,我发现连接被拒绝错误 运行: docker run-p5023:5023-p8050:8050-p8051: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:0

我已经按照windows 8.1中的官方文档安装了scrapy splash,但当我访问时,我发现连接被拒绝错误

运行:
docker run-p5023:5023-p8050:8050-p8051: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
2019-08-14 02:09:17+0000[-]日志已打开。
2019-08-14 02:09:17.882305[-]初始版本: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(默认值,2018年11月12日,13:43:14)[GCC 5.4.0 20160609]
2019-08-14 02:09:17.891068[-]打开文件限制:1048576
2019-08-14 02:09:17.892217[-]无法碰撞打开的文件限制
2019-08-14 02:09:18.008683[-]Xvfb启动:['Xvfb','504837395','screen','0','1024x768x24','nolisten','tcp']
QStandardPath:XDG_RUNTIME_DIR未设置,默认为“/tmp/RUNTIME root”
2019-08-14 02:09:18.572706[-]代理配置文件支持已启用,代理配置文件路径:/etc/splash/proxy profiles
2019-08-14 02:09:18.575273[-]内存缓存:启用,私有模式:启用,js跨域访问:禁用
2019-08-14 02:09:19.282557[-]详细度=1,插槽=20,参数\u缓存\u最大\u条目=500,最大超时=90.0
2019-08-14 02:09:19.291644[-]Web UI:已启用,Lua:已启用(沙盒:已启用)
2019-08-14 02:09:19.297131[-]现场从8050开始
2019-08-14 02:09:19.299929[-]启动工厂
2019-08-14 02:09:19.302557[-]服务器正在侦听http://0.0.0.0:8050

它现在正在工作。在我的例子中,它不适用于localhost,因为可能我还安装了apache服务器。但是当我使用docker默认机器IP和端口8050时,它正在工作

它现在正在工作。在我的例子中,它不适用于localhost,因为可能我还安装了apache服务器。但是当我将docker默认机器IP与端口8050一起使用时,它正在工作

您是否尝试过更改端口,因为很难复制错误,因为docker映像适用于meYes,但它始终在侦听8050。我不知道换端口的正确方法。我编辑了我的帖子,希望它能帮助你它现在的工作你有没有尝试过改变端口,因为它很难复制错误,因为docker图像适合我是的,但它总是听8050。我不知道换端口的正确方法。我编辑了我的帖子,希望它能帮助你现在就开始工作