기타

CentOS 7 에 Phantomjs 설치하기

Jack Moon 2017. 10. 20. 17:20


centos_phantomjs_install.txt

[시스템 사양점검]
# cat /etc/centos-release
CentOS Linux release 7.2.1511 (Core)
# arch
x86_64


[설치할 폴더]
# mkdir /usr/local/phantom
# cd /usr/local/phantom


[다운로드] http://phantomjs.org/download.html
# wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2


[설치]
# yum install bzip2
# yum install fontconfig
# tar jxvf phantomjs-2.1.1-linux-x86_64.tar.bz2
# ln -s /usr/local/phantom/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/bin/phantomjs


[테스트]
# phantomjs /usr/local/phantom/phantomjs-2.1.1-linux-x86_64/examples/hello.js

centos_phantomjs_install.txt
0.0MB