Skip to content

Instantly share code, notes, and snippets.

@Nguyenanh
Forked from sintret/aws-phantom
Last active November 18, 2020 07:37
Show Gist options
  • Save Nguyenanh/bde1cd060b9f5496081d17ca00a0acac to your computer and use it in GitHub Desktop.
Save Nguyenanh/bde1cd060b9f5496081d17ca00a0acac to your computer and use it in GitHub Desktop.
install phantomjs in aws ec2
# 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