AWS EC2 でクローリングをするためにphantomjsをインストールする¶
npm でインストール
npm install phantomjs -g
npm install casperjs -g
phantomjs -v
casperjs --version
普通にインストールするとこんな感じの手順になる
cd /usr/local/share
sudo wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
sudo tar xjf phantomjs-2.1.1-linux-x86_64.tar.bz2
sudo ln -s /usr/local/share/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/bin/phantomjs