hhvm的正確安裝姿勢http://dl.hhvm.com映象

x3d發表於2016-05-28

hhvm是php的第三方執行環境,由facebook出品,基於該執行環境,它還提供了一種程式語言hack – PHP的靜態型別版。

折騰了一天後,包括各種編譯、配置、FQ,後面終於忍不住搜了一下 http://dl.hhvm.com mirrors ,終於找到了答案。

https://docs.hhvm.com/hhvm/installation/linux#mirrors

There are a variety of volunteered owned mirrors to get the packages, if the default one shown in these instructions are slow. Just change the prefix in your /etc/apt/sources.list.d/hhvm.list (still leave the subdirectory of your distro).

有國內的映象,由一家叫 愛雲網路的 公司提供。

update-alternatives: using /usr/bin/hhvm to provide /usr/bin/php (php) in auto mode


  • HHVM is installed.
  • Running PHP web scripts with HHVM is done by having your
  • webserver talk to HHVM over FastCGI. Install nginx or Apache,
  • and then:
  • $ sudo /usr/share/hhvm/install_fastcgi.sh
  • $ sudo /etc/init.d/hhvm restart
  • (if using nginx) $ sudo /etc/init.d/nginx restart
  • (if using apache) $ sudo /etc/init.d/apache restart
  • Detailed FastCGI directions are online at:
  • https://github.com/facebook/hhvm/wiki/FastCGI
  • If you`re using HHVM to run web scripts, you probably want it
  • to start at boot:
  • $ sudo update-rc.d hhvm defaults
  • Running command-line scripts with HHVM requires no special setup:
  • $ hhvm whatever.php
  • You can use HHVM for /usr/bin/php even if you have php-cli
  • installed:
  • $ sudo /usr/bin/update-alternatives
  • –install /usr/bin/php php /usr/bin/hhvm 60

結果是hhvm方便安裝了,但user-documentation又執行不起來了。


相關文章