hhvm的正确安装姿势 http://dl.hhvm.com 镜像

本文介绍了HHVM的安装过程及遇到的问题解决方法,提供了多种镜像源供选择,并详细说明了如何通过FastCGI让Web服务器与HHVM进行交互。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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又运行不起来了。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值