1.下载 phantomjs
http://phantomjs.org/download.html
2.下载后将文件解压后放到自己定义的目录下
3.终端输入
vim .bash_profile
4.添加语句( i
插入, esc
退出,:wq
保存关闭)
export PATH=${PATH}:/Volumes/data/phantomjs/bin
(/Applications/phantomjs-2.1.1-macosx/bin
换成自己文件路径)
5.终端输入
source .bash_profile
6.检测是否配置成功
phantomjs --version