search
Homephp教程php手册HHVM 安装配置(准备全部替换现在系统)

HHVM 安装配置(准备全部替换现在系统)

Jun 06, 2016 pm 08:13 PM
hhvmPrepareInstallreplaceNowsystemConfiguration

HHVM很早就听说过,之前刚出来的时候版本还不太稳定,上周听说百度大部分系统都切换到HHVM 突然也想替换现用系统。好吧开始折腾吧! 我现在用的UBUNTU 14.04版本,为了省事使用官网的repo。结果repo都添加完了。 sudo apt-get install hhvm [sudo] password

HHVM很早就听说过,之前刚出来的时候版本还不太稳定,上周听说百度大部分系统都切换到HHVM 突然也想替换现用系统。好吧开始折腾吧!
我现在用的UBUNTU 14.04版本,为了省事使用官网的repo。结果repo都添加完了。
sudo apt-get install hhvm
[sudo] password for XX:
正在读取软件包列表… 完成
正在分析软件包的依赖关系树
正在读取状态信息… 完成
有一些软件包无法被安装。如果您用的是 unstable 发行版,这也许是
因为系统无法达到您要求的状态造成的。该版本中可能会有一些您需要的软件
包尚未被创建或是它们已被从新到(Incoming)目录移出。
下列信息可能会对解决问题有所帮助:

下列软件包有未满足的依赖关系:
hhvm : 依赖: libboost-filesystem1.53.0 但无法安装它
依赖: libboost-program-options1.53.0 但无法安装它
依赖: libboost-system1.53.0 但无法安装它
依赖: libboost-system1.53.0 但无法安装它
依赖: libboost-regex1.53.0 但无法安装它
依赖: libboost-thread1.53.0 但无法安装它
E: 无法修正错误,因为您要求某些软件包保持现状,就是它们破坏了软件包间的依赖关系。
好吧,我也不想动了其它的,从源代码开始:
sudo apt-get install autoconf automake binutils-dev build-essential cmake g++ git \
libboost-dev libboost-filesystem-dev libboost-program-options-dev libboost-regex-dev \
libboost-system-dev libboost-thread-dev libbz2-dev libc-client-dev libldap2-dev \
libc-client2007e-dev libcap-dev libcurl4-openssl-dev libdwarf-dev libelf-dev \
libexpat-dev libgd2-xpm-dev libgoogle-glog-dev libgoogle-perftools-dev libicu-dev \
libjemalloc-dev libmcrypt-dev libmemcached-dev libmysqlclient-dev libncurses-dev \
libonig-dev libpcre3-dev libreadline-dev libtbb-dev libtool libxml2-dev zlib1g-dev \
libevent-dev libmagickwand-dev libinotifytools0-dev libiconv-hook-dev libedit-dev \
libiberty-dev libxslt1-dev ocaml-native-compilers \
php5-imagick libyaml-dev

git clone git://github.com/facebook/hhvm.git
cd hhvm
git submodule update –init –recursive
cd ..

cd hhvm
cmake .
make -j [number_of_processor_cores] # eg. make -j 4
sudo make install

这上面的命令官网提供详细如下

https://github.com/facebook/hhvm/wiki/Building and installing HHVM on Ubuntu 14.04

安装完后直接可以运行了。
我这里使用的fastcgi + nginx
https://github.com/facebook/hhvm/wiki/FastCGI
hhvm –mode server -vServer.Type=fastcgi -vServer.Port=9000
nginx: fastcgi_pass 127.0.0.1:9000;
就可以了,没什么异常出现,公司的网站代码,还有我帮我朋友做的网站,一切正常。空了测试性能。

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Atom editor mac version download

Atom editor mac version download

The most popular open source editor