https://www.bonusbits.com/wiki/HowTo:Install_PhantomJS_on_CentOS
One way to extract the archive and preserve the included files and structure is to extract to an folder and set the path to the bin.
- Create Directory
-
mkdir -p /opt/phantomjs
- Extract
-
tar -xjvf ~/downloads/phantomjs-1.9.8-linux-x86_64.tar.bz2 --strip-components 1 /opt/phantomjs/
- Create Symlink
-
ln -s /opt/phantomjs/bin/phantomjs /usr/bin/phantomjs
Test
phantomjs /opt/phantomjs/examples/hello.js
原文地址:https://www.jb51.cc/centos/380652.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。