introuduction :
phantomjs look in https://github.com/ariya/phantomjs
code:
yum install fontconfig freetype freetype-devel fontconfig-devel libstd
mkdir -p /opt/phantomjs
cd /opt/phantomjs/
wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 .
tar -xjvf phantomjs-2.1.1-linux-x86_64.tar.bz2
ln -s /opt/phantomjs/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/bin/phantomjs
phantomjs /opt/phantomjs/phantomjs-2.1.1-linux-x86_64/example/hello.js
reference
https://www.bonusbits.com/wiki/HowTo:Install_PhantomJS_on_CentOS
沒有留言:
張貼留言