1. 程式人生 > >mac 安裝配置 phantomjs

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