码迷,mamicode.com
首页 > 系统相关 > 详细

Mac环境下安装运行splash

时间:2017-06-27 08:10:32      阅读:200      评论:0      收藏:0      [点我收藏+]

标签:install   term   安装   word   product   south   访问   描述   rod   

http://blog.csdn.net/chenhy8208/article/details/69391097

最近需要使用scrapy爬虫做一些开发,用到了splash。我本机是mac环境,跳着看资料,导致碰到了一些坑,记录一下mac如何安装运行splash

1、下载安装 DockerToolbox(下载地址

下载完成以后,会安装下面3个app。 
技术分享 
点击第一Terminal运行。

2、按照官方文档 下载、运行启动 splash

1.Pull the image:

Docker pull scrapinghub/splash

2.Start the Container:

docker run -p 5023:5023 -p 8050:8050 -p 8051:8051 scrapinghub/splash

3.Figure out the ip address of the docker-machine:

$ docker-machine ip default

192.168.59.103

我坑就坑在最后一步,因为网上查的都是liunx下的资料,ip直接用localhost就可以,一直访问不了,其实mac下面,docker splash是会虚拟出一个新的ip的,这个地址需要用上面的命令查出。

最后,启动成功以后的界面是这样的

技术分享

Mac环境下安装运行splash

标签:install   term   安装   word   product   south   访问   描述   rod   

原文地址:http://www.cnblogs.com/xqnq2007/p/7083186.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!