qsbaq 发表于 2014-10-10 17:32

nginx hhvm 不能启动

今天好奇,配置了一个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_indexindex.php;
    fastcgi_paramSCRIPT_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
hhvm is not running ... failed!
root@www:~# /etc/init.d/hhvm start
root@www:~# /etc/init.d/hhvm status
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
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


完全不能启动,大家帮分析一下看。
页: [1]
查看完整版本: nginx hhvm 不能启动