【发布时间】:2018-05-07 12:19:07
【问题描述】:
我是HHVM 的新手,并开始在我的Vagrant 机器中将其配置为以FastCGI 运行,但是当我在浏览器中点击localhost:9000 时,它只响应错误
ERR_EMPTY_RESPONSE
但如果我停止使用sudo service hhvm stop 的服务并使用hhvm -m server -p 9000 将HHVM 作为普通运行时服务器运行,并使用localhost:9000 URL 访问浏览器,它就完美了,
下面是/etc/hhvm/server.ini中的配置数据
; php options
pid = /var/run/hhvm/pid
; hhvm specific
hhvm.server.port = 9000
hhvm.server.type = fastcgi
hhvm.server.default_document = index.php
hhvm.log.use_log_file = true
hhvm.log.file = /var/log/hhvm/error.log
hhvm.repo.central.path = /var/cache/hhvm/hhvm.hhbc
hhvm.server.source_root = /vagrant/www
这是我在设置 FastCGI https://docs.hhvm.com/hhvm/basic-usage/proxygen#automatic-service-startup 时获得帮助的地方
如何将其作为自动启动服务运行?
任何帮助将不胜感激。在此先感谢:)
【问题讨论】:
-
可以运行
sudo systemctl enable hhvm吗? -
嗨@FelippeDuarte 结果来自
sudo: systemctl: command not found这是一个使用ubuntu/trusty64的全新无业游民设置。谢谢
标签: php vagrant ubuntu-14.04 fastcgi hhvm