大家好! 不知道怎么设置才能够在openresty中通过os.getenv取到操作系统的环境变量? 我的环境是centos 6.2,ngx_openresty/1.4.2.9 最小化式例: location =/test1 { content_by_lua ' ngx.say(os.getenv("PATH")) '; } --
你可以看一下这个:http://wiki.nginx.org/CoreModule#envOn Oct 17, 2013, at 12:25 AM, wgm <wgm....@gmail.com> wrote:大家好! 不知道怎么设置才能够在openresty中通过os.getenv取到操作系统的环境变量? 我的环境是centos 6.2,ngx_openresty/1.4.2.9 最小化式例: location =/test1 { content_by_lua ' ngx.say(os.getenv("PATH")) '; } -- --