1 官網(wǎng)下載 http://phantomjs.org/download.html
2 解壓
$ tar -xvf phantomjs-2.1.1-linux-x86_64.tar.bz2
$ sudo mv phantomjs-2.1.1-linux-x86_64 /usr/local/share/phantomjs
- 3 建立鏈接
$ ln -s /usr/local/share/phantomjs/bin/phantomjs /usr/local/bin/phantomjs
- read more:
參考了 Katios同學的ubuntu安裝phantomjs apt-get和下載安裝包兩種方式中的 方法二