Home > php教程 > php手册 > body text

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

WBOY
Release: 2016-06-06 20:13:05
Original
1228 people have browsed it

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;
就可以了,没什么异常出现,公司的网站代码,还有我帮我朋友做的网站,一切正常。空了测试性能。

source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!