chronolaw / http_study Goto Github PK
View Code? Open in Web Editor NEWfollow me to study http
License: BSD 2-Clause "Simplified" License
follow me to study http
License: BSD 2-Clause "Simplified" License
弄了一天也无法成功,只有Nginx的界面,没有网站的界面。openresty版本也换了很多个,都无法成功
你好,本地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'
老师您好,我访问大多数具体资源,如http://127.0.0.1/09-1
时,返回500,这个问题该怎么查呢?从lua入手吗?
捞了下日志(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
怎么过滤也过滤不干净。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.