You cannot see this page without javascript.

hhvm install

APM 조회 수 427 추천 수 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 조회 수
369 APM mariadb download origin address LynX 2019-06-19 1994
368 APM What one can and should optimize LynX 2019-06-03 1419
367 CentOS mariadb install LynX 2019-05-31 1183
366 CentOS init mode change LynX 2019-05-30 1291
365 APM ext zip install LynX 2019-02-19 1615
364 APM ext ImageMagick install LynX 2019-02-19 513
363 3D Printer Pronterface(PrintRun) install file LynX 2018-09-13 753
362 CentOS Grub UUID change LynX 2018-08-08 870
361 Linux letsencrypt wildcard LynX 2018-07-26 798
360 Printer cura usb connection LynX 2018-07-06 666
359 CentOS cli 무선랜 LynX 2018-06-07 448
358 APM 윈도우에 APM 페키지 설치 file LynX 2018-05-04 594
357 APM MySQLTuner 설치 LynX 2018-04-27 545
356 CentOS CentOS7 커널 업데이트 LynX 2018-04-23 702
355 HTML Tag CSS 여러가지 모양 만들기 LynX 2018-02-08 772
354 Linux wkhtmltopdf wkhtmltoimage install LynX 2018-01-31 602
353 APM LZ4_LIBS Not Found (CentOS7, MariaDB 10.1.29) LynX 2018-01-03 485
352 APM mysql ./configure LynX 2017-12-15 805
351 APM PHP-7.2.0 LynX 2017-12-12 3157
350 Linux libiconv LynX 2017-12-08 558

XE Login