Linux环境下安装phantomjs

发布时间 2023-04-21 14:07:32作者: 黑水滴

一、创建文件夹,用来存放软件

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