一、创建文件夹,用来存放软件
cd /opt/softWare
mkdir phantomJS
cd 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/softWare/phantomJS/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/bin/phantomjs
四、检查安装是否正常
which phantomjs
phantomjs -v