收到错误消息:无法启动Ghost驱动程序 [英] getting error: Could not start Ghost Driver

查看:91
本文介绍了收到错误消息:无法启动Ghost驱动程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在我的Openshift服务器中运行Ghostdriver.当我运行此命令时:

I'm trying to run Ghostdriver inside my Openshift server. As i run this command:

./phantomjs --webdriver=15002

它说:

PhantomJS is launching GhostDriver...
[ERROR - 2014-08-01T04:14:21.160Z] GhostDriver - main.fail - {"message":"Could not start Ghost Driver","line":82,"sourceId":139887801789952,"sourceURL":":/ghostdriver/main.js","stack":"Error: Could not start Ghost Driver\n    at :/ghostdriver/main.js:82","stackArray":[{"sourceURL":":/ghostdriver/main.js","line":82}]}
$ ./phantomjs --version
1.9.8

请帮帮我,我从10 Days收到此错误.我搜索了所有内容,并用Google搜索了所有内容.没有什么可以解决我的:(我很不高兴:(

Please help me out, I'm getting this error from 10 Days. I searched everything and googled everything. nothing is sorted me out :( I'm much upset :(

肯定会得到帮助!

推荐答案

OpenShift不允许绑定本地主机地址;有一个补丁允许GhostDriver绑定任何指定的IP(当前始终绑定到localhost不论如何),但它仍未在PhantomJS源代码树和二进制发行版中实现.

OpenShift doesn't allow binding the localhost address; there is a patch to allow GhostDriver to bind any specified IP (currently it always binds to localhost no matter what), but it still hasn't made it in the PhantomJS source tree and binary distributions.

为了在OpenShift上使用PhantomJS + GhostDriver,我在应用补丁后对其进行了重新编译,您可以在此处找到它:

In order to use PhantomJS + GhostDriver on OpenShift I recompiled it after applying the patch, you can find it here: https://paolobernardi.wordpress.com/2015/02/25/phantomjs-with-ghostdriver-on-openshift/

这篇关于收到错误消息:无法启动Ghost驱动程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆