在centos上面安装phantomjs

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.

  1. Create Directory
  2. mkdir -p /opt/phantomjs
    
  3. Extract
  4. tar -xjvf ~/downloads/phantomjs-1.9.8-linux-x86_64.tar.bz2 --strip-components 1 /opt/phantomjs/
  5. Create Symlink
  6. ln -s /opt/phantomjs/bin/phantomjs /usr/bin/phantomjs

Test

phantomjs /opt/phantomjs/examples/hello.js

相关文章

Centos下搭建性能监控Spotlight
CentOS 6.3下Strongswan搭建IPSec VPN
在CentOS6.5上安装Skype与QQ
阿里云基于centos6.5主机VPN配置
CentOS 6.3下配置multipah
CentOS安装、配置APR和tomcat-native