CentOS/RHEL一键安装PhantomJS的脚本
phantomjs_install.sh
yum install fontconfig freetype freetype-devel fontconfig-devel libstdc++ wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.8-linux-x86_64.tar.bz2 tar -xjvf ~/downloads/phantomjs-1.9.8-linux-x86_64.tar.bz2 --strip-components 1 /opt/phantomjs/ sudo yum install libffi-devel openssl-devel pip install pyopenssl pyasn1 pip install requests[security]
更多参考资料: