下载
cd /opt
wget https://github.com/Medium/phantomjs/releases/download/v2.1.1/phantomjs2.1.1-linux-x86_64.tar.bz2
yum install -y bzip2
tar -jxvf phantomjs-2.1.1-linux-x86_64.tar.bz2
vim /etc/profile
export PATH=$PATH:/opt/phantomjs-2.1.1-linux-x86_64/bin
source /etc/profile