linux 安装phantomjs

一、在centos7下安装PhantomJS

1.下载地址:http://phantomjs.org/download.html

2.文件名:phantomjs-2.1.1-linux-x86_64.tar.bz2

3. yum install -y bzip2

4.bzip2 -d phantomjs-2.1.1-linux-x86_64.tar.bz2

5.tar xvf phantomjs-2.1.1-linux-x86_64.tar

# 安装依赖软件
6.yum -y install wget fontconfig

#重命名

7.mv /root/phantomjs-2.1.1-linux-x86_64 /root/phantomjs

#建立软链接

8.ln -s /root/phantomjs/bin/phantomjs /usr/bin

#安装成功

猜你喜欢

转载自www.cnblogs.com/zenan/p/8979814.html