在centos上面安装phantomjs

前端之家收集整理的这篇文章主要介绍了在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.

@H_404_10@
  • 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

    @H_502_40@
    phantomjs /opt/phantomjs/examples/hello.js

    猜你在找的CentOS相关文章