-
-
Save Nguyenanh/bde1cd060b9f5496081d17ca00a0acac to your computer and use it in GitHub Desktop.
install phantomjs in aws ec2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # download and unpack distribution | |
| sudo wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 | |
| sudo mkdir /opt/phantomjs | |
| bzip2 -d phantomjs-2.1.1-linux-x86_64.tar.bz2 | |
| sudo tar -xvf phantomjs-2.1.1-linux-x86_64.tar --directory /opt/phantomjs/ --strip-components 1 | |
| sudo ln -s /opt/phantomjs/bin/phantomjs /usr/bin/phantomjs | |
| #try phantomjs | |
| phantomjs /opt/phantomjs/examples/hello.js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment