远程服务器使用phantomjs报错:phantomjs unexpectedly exited. Status code was: 127

时间:2017-12-02 18:55:55   收藏:0   阅读:2376

原因是因为缺少phantomjs运行的依赖包

sudo apt-get install libfontconfig

 

sudo yum install fontconfig freetype libfreetype.so.6 libfontconfig.so.1 libstdc++.so.6  

 

运行过程中还可能报错没有可执行权限

进入到phantomjs/bin目录下,执行

chmod 777 phantomjs



原文:http://www.cnblogs.com/zhouxinfei/p/7954796.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!