HHVM has long heard that the version was not stable when it was just released. Last week, I heard that most of Baidu's systems were switched to HHVM and suddenly wanted to replace the current system. Let's get started! I am using UBUNTU14.04 to save time using the repo on the official website. The repo is added. Sudoapt-getinstallhhvm [sudo] password
HHVM has long heard that the version was not stable when it was just released. Last week, I heard that most of Baidu's systems were switched to HHVM and suddenly wanted to replace the current system. Let's get started! I am using UBUNTU 14.04 to save trouble using the repo on the official website. The repo is added. Sudo apt-get install hhvm [sudo] password
HHVM has long heard that the version was not stable when it was just released. Last week, I heard that most of Baidu's systems were switched to HHVM and suddenly wanted to replace the current system. Let's get started!
I am using UBUNTU 14.04 to save trouble using the repo on the official website. The repo is added.
Sudo apt-get install hhvm
[Sudo] password for XX:
Reading the package list... Complete
Analyzing the dependency tree of the software package
Reading status information... Complete
Some software packages cannot be installed. If you are using the unstable release, this may be
This is because the system cannot meet your requirements. This version may contain software you need.
Packages have not yet been created or they have been removed from the new Incoming directory.
The following information may help solve the problem:
The following software packages have dependencies that are not met:
Hhvm: Dependency: libboost-filesystem1.53.0 but cannot install it
Dependency: libboost-program-options1.53.0 but cannot install it
Dependency: libboost-system1.53.0 but cannot install it
Dependency: libboost-system1.53.0 but cannot install it
Dependency: libboost-regex1.53.0 but cannot install it
Dependency: libboost-thread1.53.0 but cannot install it
E: the error cannot be corrected because some software packages are required to maintain the status quo, that is, they destroy the dependency between software packages.
Well, I also don't want to change anything else, starting with the source code:
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
The above commands are provided on the official website as follows:
Https://github.com/facebook/hhvm/wiki/Building and installing HHVM on Ubuntu 14.04
After installation, you can run it directly.
Fastcgi + nginx used here
Https://github.com/facebook/hhvm/wiki/FastCGI
Hhvm-mode server-vServer. Type = fastcgi-vServer. Port = 9000
Nginx: fastcgi_pass 127.0.0.1: 9000;
That's it. There's no exception, my company's website code, and my friend's website. Everything works. The test performance is empty.
Original article address: HHVM installation configuration (to replace all the configurations with the current system). Thank you for sharing with me.