phantomjs
wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
1.2解压
bzip2 -d phantomjs-2.1.1-linux-x86_64.tar.bz2
tar xvf phantomjs-2.1.1-linux-x86_64.tar -C /usr/local/
1.3安装依赖
安装依赖软件
yum -y install wget fontconfig
mv /usr/local/phantomjs-2.1.1-linux-x86_64/ /usr/local/phantomjs
1.4环境变量设置
vim /etc/profile
#set for phantomjs
PHANTOMJS_HOME=/usr/local/phantomjs
PATH=$PATH:$PHANTOMJS_HOME/bin
export PHANTOMJS_HOME PATH
source /etc/profile