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
129 CentOS7 ▒ Doly의 CentOS7 강좌12 4. 원격접속 - 2.SSH file [1] LynX 2014-10-23 922
128 Network NAT 구성 file [13] LynX 2015-04-29 923
127 활성 네트워크 중복으로 인한 인터넷 연결 안되는 문제 file [12] LynX 2011-05-26 940
126 Linux EPEL repository [10] LynX 2014-12-11 945
125 CentOS7 ▒ Doly의 CentOS7 강좌25 10. 디스크관리 2 Gnome-disks 그놈 디스크 관리도구 file [16] LynX 2015-06-09 946
124 LinuxMint linuxmint LynX 2014-12-11 953
123 Linux firewalld DDOS 차단 LynX 2016-08-22 953
122 Linux lol 설치 [9] LynX 2014-12-22 958
121 CentOS7 ▒ Doly의 CentOS7 강좌3-2.CenOS 7 설치-1 file [13] LynX 2014-10-23 967
120 CentOS CentOS 에 설치된 커널과 오랜된 커널 삭제하기 LynX 2014-12-30 970
119 APM Apache httpd mod_security2 적용 file LynX 2017-02-09 973
118 Linux Bomi Player [24] LynX 2015-02-27 975
117 HTML Tag JWPlayer 사용법 #2 포맷 [14] LynX 2013-06-25 977
116 Server 윈도우7(Window)에 DNS서버(acrylic-from sourceforge) 설치하는 방법 file LynX 2014-05-14 981
115 APM 무료 ssl 설치 LynX 2013-12-21 986
114 Server OpenSSL LynX 2014-06-19 986
113 CentOS mariadb install LynX 2019-05-31 998
112 Programing 인쇄할 영역만 인쇄 file LynX 2013-12-06 1011
111 Linux roundcube 설치 [14] LynX 2014-08-25 1013
110 CentOS7 ▒ Doly의 CentOS7 강좌2 1.리눅스의 이해 file [13] LynX 2014-10-23 1023

XE Login