NGINX
NGINX Trac
3rd Party Modules
Security Advisories
CHANGES
OpenResty
ngx_lua
Tengine
在线学习资源
NGINX 开发从入门到精通
NGINX Modules
ngx_echo
extreme
V2EX  ›  NGINX

谁能解释一下变量 NGINX 对 Nginx 的影响

  •  
  •   extreme · Jun 26, 2015 · 3080 views
    This topic created in 4055 days ago, the information mentioned may be changed or developed.

    Nginx 1.8.0
    最近执行一个Shell Script时,发现Nginx无法进入守护进程模式。
    经过检查,是由于一个环境变量NGINX导致的……
    例如这是Nginx的路径:/usr/sbin/nginx
    执行:NGINX=HELLONGINX /usr/sbin/nginx
    此时就不会回到Shell处。

    3 replies    2015-06-28 08:30:34 +08:00
    leeyiw
        1
    leeyiw  
       Jun 26, 2015
    没见过,Google 了一下也没搜到什么,是不是 Nginx 的源码被改过?
    extreme
        3
    extreme  
    OP
       Jun 28, 2015
    @tifan 哇,你太厉害啦!
    看了是没有返回NGX_OK而导致的。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3474 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 00:43 · PVG 08:43 · LAX 17:43 · JFK 20:43
    ♥ Do have faith in what you're doing.