centos 安装phantomjs

时间:2023-03-09 08:29:58
centos 安装phantomjs
sudo yum install gcc gcc-c++ make git openssl-devel freetype-devel fontconfig-devel
git clone git://github.com/ariya/phantomjs.git
cd phantomjs
git checkout 1.9
./build.sh 安装了一个多小时完成后输入phantomjs --version,显示-bash:phantomjs:command not found

建立符号链接
ln -s /usr/local/src/phantomjs/bin/phantomjs /usr/local/bin/
/usr/local/src/phantomjs/bin/phantomjs为你的安装路径 中文网页截图乱码:
http://www.cnblogs.com/walter371/p/5041020.html

shell脚本获取网页快照并生成缩略图

http://www.cnblogs.com/lurenjiashuo/p/get-snapshot-and-create-thumbnail.html

[phantomjs]利用phantomjs+casperjs实现登陆抓取网页并截图_phantomjs

http://www.niubb.net/a/2015/05-01/345805.html