Linux安装phantomjs

1. 下载地址

https://phantomjs.org/download.html

2. 解压

先安装bzip2

# yum -y install bzip2

# tar jxvf phantomjs-2.1.1-linux-x86_64.tar.bz2 

3.配置环境变量

 4. 运行前需要安装一个libfontconfig.so.1:

 5. 运行

输入命令 phantomjs即可运行

posted @ 2024-01-01 13:04  yappleorange  阅读(412)  评论(0)    收藏  举报