免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1578 | 回复: 0
打印 上一主题 下一主题

[Web] nginx hhvm 不能启动 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2014-10-10 17:32 |只看该作者 |倒序浏览
今天好奇,配置了一个nginx,hhvm环境。开始还能运行,但是现在hhvm起不来了。

nginx 运行是ok的,运行的程序是 wordpress。

日志也看不到,下面贴出配置文件,大家分析一下:

root@www :~# cat /etc/hhvm/server.ini
; php options


pid = /var/run/hhvm/pid


; hhvm specific


hhvm.server.file_socket=/var/run/hhvm/hhvm.sock
;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/run/hhvm/hhvm.hhbc


==================================================
root@www :~# cat /var/log/hhvm/error.log
Core dumped: Aborted
Core dumped: Aborted

=======================================================
root@www :~# cat /etc/nginx/hhvm.conf
location ~ \.(hh|php)$ {
    fastcgi_keep_conn on;
    fastcgi_pass unix:/var/run/hhvm/hhvm.sock;
    #fastcgi_pass   127.0.0.1:9000;
    fastcgi_index  index.php;
    fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;
    include        fastcgi_params;
}

=====================================================

root@www :~# cat /etc/nginx/sites-enabled/www.vpsotss.com
server {


listen 80 default_server;
root /wwwroot/www.vpstoss.com;
index index.html index.htm index.php;


access_log /var/log/nginx/www.vpstoss.com.access.log ;


# Make site accessible from http://localhost/
server_name www.vpstoss.com vpstoss.com;
include hhvm.conf;


location / {
#   try_files $uri $uri/ /index.php?$args;
}
}


=====================================================
下面看我的启动:

root@www :~# /etc/init.d/hhvm status
[FAIL] hhvm is not running ... failed!
root@www:~# /etc/init.d/hhvm start
root@www:~# /etc/init.d/hhvm status
[FAIL] hhvm is not running ... failed!
root@www:~# /etc/init.d/hhvm restart
[ ok ] Restarting HHVM FastCGI Daemon: hhvm.
root@www:~# /etc/init.d/hhvm status
[FAIL] hhvm is not running ... failed!

root@www:~# php -v
HipHop VM 3.3.0 (rel)
Compiler: tags/HHVM-3.3.0-0-g0a3cfb87b8a353fc7e1d15374f4adc413e37aba9
Repo schema: 9a391d9a03e15fccba1cde6d35c05b7cdd380238
Extension API: 20140829


完全不能启动,大家帮分析一下看。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP