Skip to content

Instantly share code, notes, and snippets.

@ngrichyj4
ngrichyj4 / install.sh
Last active October 6, 2017 18:33 — forked from ultimagriever/install.sh
Start PhantomJS server as a Linux service
export TMPDIR=/tmp/
cd /usr/local/lib
mkdir phantom
cd phantom
wget https://gist.githubusercontent.com/ultimagriever/72fcb3e4446460638d65aecd2fbee98c/raw/9d915c60921219900b60c64cf5379c54d63ca43c/restart.sh
wget https://gist.githubusercontent.com/ultimagriever/72fcb3e4446460638d65aecd2fbee98c/raw/9d915c60921219900b60c64cf5379c54d63ca43c/start.sh
wget https://gist.githubusercontent.com/ultimagriever/72fcb3e4446460638d65aecd2fbee98c/raw/9d915c60921219900b60c64cf5379c54d63ca43c/status.sh
wget https://gist.githubusercontent.com/ultimagriever/72fcb3e4446460638d65aecd2fbee98c/raw/9d915c60921219900b60c64cf5379c54d63ca43c/stop.sh
chmod +x *.sh
ln -s /usr/local/lib/phantom/restart.sh /usr/local/bin/phantom-restart