我正在尝试在我的 Openshift 服务器内运行 Ghostdriver
。当我运行此命令时:
./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
中收到此错误。我搜索了所有内容并用谷歌搜索了所有内容。什么都没有解决我:(我很沮丧:(
我们将不胜感激!!
最佳答案
OpenShift 不允许绑定(bind)本地主机地址;有a patch允许 GhostDriver 绑定(bind)任何指定的 IP(目前无论如何它总是绑定(bind)到 localhost),但它仍然没有在 PhantomJS 源代码树和二进制发行版中实现。
为了在OpenShift上使用PhantomJS + GhostDriver,我在应用补丁后重新编译了它,你可以在这里找到它:https://paolobernardi.wordpress.com/2015/02/25/phantomjs-with-ghostdriver-on-openshift/
关于javascript - 出现错误 : Could not start Ghost Driver,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28606650/