Code Monkey home page Code Monkey logo

http_study's People

Contributors

chronolaw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

http_study's Issues

现在这个demo还维护吗?

弄了一天也无法成功,只有Nginx的界面,没有网站的界面。openresty版本也换了很多个,都无法成功

http 500

你好,本地mac系统编译的openresty,但是部分lua脚本报错。

2021/05/21 12:52:15 [error] 31008#0: *79 lua entry thread aborted: runtime error: /opt/webroot/openresty_demo/http_study/www/lua/19-1.lua:3: module 'ngx.resp' not found:
no field package.preload['ngx.resp']
no file '/opt/webroot/openresty_demo/http_study/www//lua/ngx/resp.lua'
no file '/usr/local/openresty/lualib/ngx/resp.lua'
no file '/usr/local/openresty/lualib/ngx/resp/init.lua'
no file './ngx/resp.lua'
no file '/usr/local/openresty/luajit/share/luajit-2.1.0-beta1/ngx/resp.lua'
no file '/usr/local/share/lua/5.1/ngx/resp.lua'
no file '/usr/local/share/lua/5.1/ngx/resp/init.lua'
no file '/usr/local/openresty/luajit/share/lua/5.1/ngx/resp.lua'
no file '/usr/local/openresty/luajit/share/lua/5.1/ngx/resp/init.lua'
no file '/opt/webroot/openresty_demo/http_study/www//lua/lib/ngx/resp.so'
no file '/usr/local/openresty/lualib/ngx/resp.so'
no file './ngx/resp.so'
no file '/usr/local/lib/lua/5.1/ngx/resp.so'
no file '/usr/local/openresty/luajit/lib/lua/5.1/ngx/resp.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file '/opt/webroot/openresty_demo/http_study/www//lua/lib/ngx.so'
no file '/usr/local/openresty/lualib/ngx.so'
no file './ngx.so'
no file '/usr/local/lib/lua/5.1/ngx.so'
no file '/usr/local/openresty/luajit/lib/lua/5.1/ngx.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
coroutine 0:
[C]: in function 'require'


2021/05/21 12:33:22 [error] 31008#0: *74 lua entry thread aborted: runtime error: /opt/webroot/openresty_demo/http_study/www/lua/17-1.lua:10: expecting 3 arguments, but only seen 5
stack traceback:
coroutine 0:
[C]: in function 'incr'

访问具体资源返回500

老师您好,我访问大多数具体资源,如http://127.0.0.1/09-1时,返回500,这个问题该怎么查呢?从lua入手吗?
image

捞了下日志(logs/http_access.log)看到下面的信息:

127.0.0.1 - - [24/Jul/2022:17:46:04 +0800] "GET /09-1 HTTP/1.1" 500 585 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36" "-"

还有哪些线索呢?


环境:Mac M1

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.