[2011-02-06]
SQL
[2011-03-14]
내장함수
[2011-03-28]
[DOM] 주요 DOM API (CDATA 의미)
[2011-05-12]
PHP 정리
[2011-05-16]
php header 정리
[2011-05-18]
수퍼 글로벌 변수 (환경변수, 파일 설명 포함)
[2011-05-26]
정규식
[2011-05-30]
함수목록 2 [추천]
[2011-06-07]
정규식
[2011-07-08]
유용한 태그
[2011-08-11]
IE 브라우져 종류별로 css 적용하기
[2011-08-16]
MySQL 자주쓰는 명령 정리
[2012-02-01]
Jquery 요약
[2012-03-06]
php 코드 재활용과 클래스 (매직 메소드)
[2013-01-28]
크로스브라으저 관련 코드 모음
[2013-11-28]
http://devdocs.io/
CentOS 에서 Phantomjs 를 설치하는 방법에는 소스를 받아서 컴파일 하는 방법도 있지만 바이너리 받는걸 추천한다.
아래의 폰트를 설치하지 않으면 캡쳐기능을 사용할 때 한글이 페이지에서 나오지 않는 문제가 생긴다.
phantomjs binary 파일로 받아서 설치 (현제 최신버전은 2.1.1 이므로 이 버전으로 하겠다.)
su -
cd
wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
tar -xvf phantomjs-2.1.1-linux-x86_64.tar.bz2
cd phantomjs-2.1.1-linux-x86_64
cp ./bin/phantomjs /usr/bin/phantomjs
yum install fontconfig
yum install fonts-korean
yum install cjkuni-fonts-common cjkuni-ukai-fonts cjkuni-uming-fonts
yum install libXext libXrender xorg-x11-fonts-Type1 xorg-x11-fonts-75dpi
fc-cache -f -v
wget http://cdn.naver.com/naver/NanumFont/fontfiles/NanumFont_TTF_ALL.zip
mkdir /usr/share/fonts/nanumfont
unzip NanumFont_TTF_ALL.zip -d /usr/share/fonts/nanumfont
cd /usr/share/fonts/nanumfont
rm -f NanumFont_TTF_ALL.zip
rm -f /usr/share/fonts/nanumfont/NanumBrush.ttf
rm -f /usr/share/fonts/nanumfont/NanumPen.ttf
fc-cache -r
http://phantomjs.org/build.html
Getting the Code
To obtain the code using Git from the official repository github.com/ariya/phantomjs:
git clone git://github.com/ariya/phantomjs.git
cd phantomjs
git checkout 2.1.1
git submodule init
git submodule update
Compile and Link
From the code checkout:
python build.py