ubuntu 安裝phantomjs、chromedriver、geckodriver

1、安裝phantomjshtml

1.從官網下載http://phantomjs.org/download.html linux

2.加壓 tar -zxvf phantomjs-2.1.1-linux-x86_64.tar.bz2git

3.mv phantomjs-2.1.1-linux-x86_64 /usr/local/share/phantomjsgithub

4.連接到bin下:ln -s /usr/local/share/phantomjs/bin/phantomjs /usr/local/bin/phantomjschrome

5.配置環境變量:sudo vim /etc/profile 添加export PATH=${PATH}:/usr/local/bin/phantomjsvim

2、安裝chromedriverapi

1.從http://chromedriver.storage.googleapis.com/index.html下載對應的版本google

2.解壓 unzip chromedriver_linux64.zip htm

3.而後移動到 /usr/local/bin下ip

3、安裝geckodriver

1.從https://github.com/mozilla/geckodriver/releases下載 後面安裝和chromedriver相同

相關文章
相關標籤/搜索