You cannot see this page without javascript.

hhvm install

APM 조회 수 420 추천 수 0 2016.12.28 14:41:25

의존 라이브러리 설치

yum install epel-release
yum install gcc gcc-c++ cpp cmake git psmisc ocaml gperf
yum install binutils-devel boost-devel libmcrypt-devel libmemcached-devel jemalloc-devel libevent-devel sqlite-devel libxslt-devel libicu-devel tbb-devel libzip-devel bzip2-devel openldap-devel readline-devel  elfutils-libelf-devel libdwarf-devel libcap-devel libyaml-devel libedit-devel lz4-devel libvpx-devel unixODBC-devel libgmp-devel libpng-devel ImageMagick-devel curl-devel expat-devel openssl-devel glog-devel oniguruma-devel

 

만약 glog와 onig에 관한 부분이 설치되지 않는다면 수동설치

 

- glog 수동설치

cd /usr/src
wget https://google-glog.googlecode.com/files/glog-0.3.3.tar.gz
tar xvzf glog-0.3.3.tar.gz
cd glog-0.3.3
./configure
make
make install

 

- onig 수동설치

cd /usr/src

wget http://www.geocities.jp/kosako3/oniguruma/archive/onig-5.9.6.tar.gz
tar xvzf onig-5.9.6.tar.gz
cd onig-5.9.6
./configure
make
make install
 

- hhvm compile

cd /usr/src
git clone https://github.com/facebook/hhvm -b master  hhvm  --recursive
cd hhvm
./configure
make
./hphp/hhvm/hhvm --version
make install

 

- service 등록

vi /etc/systemd/system/hhvm.service

 

[Unit]
Description=HHVM HipHop Virtual Machine (FCGI)
 
[Service]
ExecStart=/usr/local/bin/hhvm --config /etc/hhvm/server.hdf --user nobody --mode daemon -vServer.Type=fastcgi -vServer.Port=9000
 
[Install]
WantedBy=multi-user.target

 

- 관련 디렉토리 생성

mkdir /etc/hhvm 
mkdir /var/log/hhvm

 

- hhvm 환경설정

vi /etc/hhvm/server.hdf

PidFile = /var/run/hhvm

Server {
        Port = 80
        SourceRoot = /apm/apps/docs
        DefaultDocument = index.php
}

Eval {
  Jit = true
}

Log {
        Level = Warning
        AlwaysLogUnhandledExceptions = true
        RuntimeErrorReportingLevel = 8191
        UseLogFile = true
        UseSyslog = false
        File = /var/log/hhvm/error.log
        Access {
                * {
                        File = /var/log/hhvm/access.log
                        Format = %h %l %u % t \"%r\" %>s %b
                }
        }
}

Repo {
        Central {
                Path = /var/log/hhvm/.hhvm.hhbc
        }
}

#include "/usr/share/hhvm/hdf/static.mime-types.hdf"
StaticFile {
        FilesMatch {
                * {
                        pattern = .*\.(dll|exe)
                        headers {
                                * = Content-Disposition: attachment
                        }
                }
        }
        Extensions : StaticMimeTypes
}

MySQL {
        TypedResults = false

}

 

- service control

systemctl enable hhvm
systemctl start hhvm
systemctl status hhvm

 

hhvm.png

첨부
엮인글 :
List of Articles
번호 제목 글쓴이 날짜 조회 수sort
329 Linux Install Adobe Flash Player 11.2 on CentOS/RHEL 6.5 file LynX 2014-06-28 2286
328 Xpress Engine xe 현재접속과 로그인 수 표시 addon 수정본 file [1] LynX 2016-09-20 2238
327 Linux lets'encrypt 설치 LynX 2015-12-24 2226
326 Programing Magic Square (마방진) - 4배수가 아닌 짝수 LynX 2016-07-15 2167
325 CentOS DNS 설치 LynX 2015-12-24 2157
324 Linux FreeBSD APM Source Compile LynX 2016-05-20 2145
323 Programing 웹사이트 APK 만들기 file [1] [17] LynX 2015-07-02 2103
322 Windows 7 윈도우7(Windows7) 공유폴더에 암호걸기 file [7] LynX 2013-07-25 2087
321 Server 아파치 - 톰캣 연동하기 (PHP, JSP 같이 사용하기) LynX 2014-05-19 1964
320 Programing Magic Square (마방진) - 4의 배수 LynX 2016-07-15 1906
319 APM CentOS7 에서 apache에 mod_http2 적용하기 file LynX 2017-02-07 1857
318 Programing make - 07 접미사 규칙 LynX 2017-02-22 1853
317 Linux WOW server [13] LynX 2015-01-11 1848
316 HTML Tag css, cascading style sheets, 스타일 정의 방법 [9] LynX 2015-02-06 1832
315 APM mariadb download origin address LynX 2019-06-19 1798
314 Network GNS3 메뉴 , VPCS file [34] LynX 2015-04-29 1798
313 Programing Magic Square (마방진) - 마방진코드와 나의 생각 01 LynX 2016-07-27 1741
312 Linux ODBC 설정 [30] LynX 2015-03-18 1726
311 Server sso file LynX 2013-12-18 1717
310 Programing Magic Square (마방진) - 홀수 LynX 2016-07-15 1677

XE Login