[openresty] hello world
openresty 소프트웨어 배포
물론 nginx와 비슷합니다.
rewrite_by_lua_file에는 더 긴 코드가 적합합니다 뒤에 경로<code> location / { default_type <span>text</span>/html; content_by_lua ' ngx.<span>say</span>(<span>"<p>hello, world</p>"</span>) '; } </code>lua_code_cachelua에 대한 기본 nginx 코드 세그먼트가 있습니다. 효율성을 향상시키는 캐시 계층이지만 Lua를 적용하려면 Lua를 수정할 때마다 nginx를 다시 로드해야 합니다. 이때 캐시를 끄고 실시간으로 적용한 다음 디버깅 후에 다시 켤 수 있습니다. 완료되었습니다.
<code> location / { content_by_lua_file lua/hello.lua; } [root<span>@test</span> nginx]<span># cat lua/hello.lua</span> ngx.<span>say</span>(<span>"<p>hello, world!!! hey man</p>"</span>) </code>').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i
').text(i)); }; $numbering.fadeIn(1700); }); });
<code>lua_code_cache <span>off</span>;</code>위에는 관련 내용을 포함하여 [openresty] hello world를 소개하고 있는데, PHP 튜토리얼에 관심이 있는 친구들에게 도움이 되었으면 좋겠습니다.