mac 安装配置 phantomjs

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

猜你喜欢

转载自blog.csdn.net/weixin_43704471/article/details/85346500