lomox-offical / nginx-openresty-windows Goto Github PK
View Code? Open in Web Editor NEWnginx for windows with openresty
nginx for windows with openresty
PLEASE ADD SOCK5 SUPPORT
HERE IS PATCH http://mailman.nginx.org/pipermail/nginx-devel/2013-January/003302.html
你好,我在使用(Nginx Openresty For Windows 版本号:1.9.10.1001)时发现报如下错误,请问这个版本是不支持semaphore的吗?
错误: nginx/x\semaphore.lua:64: cannot resolve symbol 'ngx_http_lua_ffi_semaphore_new': 找不到指定的程序。
stack traceback:
coroutine 0:
[C]: in function 'require'
E:\Tmp\nginx/lua/hello.lua:2: in function <E:\Tmp\nginx/lua/hello.lua:1>, client: 127.0.0.1, server: v.duba.com, request: "GET / HTTP/1.1", host: "127.0.0.1"
2016/08/04 09:29:03 [error] 30296#28268: *24 lua entry thread aborted: runtime error: error loading module 'zlib' from file '.\zlib.dll':
找不到指定的程序。
刚找到方法,已经解决了....
local ffi = require "ffi"
local zlib
if ffi.os == "Windows" then
zlib = ffi.load "zlib"
else
zlib = ffi.load "z"
end
I want to kill all the nginx process, but i can not get it. I tried to use nginx -s stop
and nginx -s quit
command to do that, but that's all NO effect.
Why it ask for Administarator rights?
How to fix it?
漏洞描述
2017年7月11日,Nginx官方发布最新的安全公告,在Nginx范围过滤器中发现了一个安全问题(CVE-2017-7529),通过精心构造的恶意请求可能会导致整数溢出并且不正确处理范围,从而导致敏感信息泄漏。当使用Nginx标准模块时,如果文件头从缓存返回响应,允许攻击者获取缓存文件头。在某些配置中,缓存文件头可能包含后端服务器IP地址或其他敏感信息。此外,如果使用第三方模块有潜在的可能导致拒绝服务。
影响版本
Nginx 0.5.6-1.12.0,1.13.0-1.13.2
nginx-openresty-windows 最新版本号:1.13.0.1001 还是有这个漏洞,什么时候可以升级到到1.13.2 之后呢?
您好!
我正在Windows 10上使用1.9.101001版的64位程序。如果直接启动则没有问题,但是如果指定-p和-c参数后,则报错“unknown directive "lua_package_path"。
是不是我忽略了那个安装步骤或者启动参数?
望指教。
谢谢
Hi buddy,
我用nginx+lua+c/c++做数据处理的服务器,希望在内存中做缓存。我将nginx的Worker数量调整为1,理论上讲,应该就是单进程,应当可以从dll中传出缓存指针,并在下次的传入dll中使用。但测试后发现,不可使用,nginx直接重启。
请问哪位知道原因,并给我一个可行的方案?
另外,Windows64位版的服务器不可以将userdata存入全局共享内存,写入马上读取为nil
这个win版本的openresty非常好用和强大,开发效率和运行效率都不错. 有个问题是经测试,一些第3方的c库在用luajit.exe下直接调用,表现是正常的. 但在openresty下就不对劲了,表现是浏览器访问对应脚本,会不响应直至超时,也没报错。目前观察到的有lfs(luaFileSytem) , lpeg , luacom等。
Is there any guide how to build it?
请问能把淘宝的 tengine contact (https://github.com/alibaba/nginx-http-concat) 模块打包进去么?
您好,使用win64版openresty出错,麻烦 请帮看下,多谢!
执行lua 脚本出错,提示无法创建文件 报错信息如下 :
[error] 2656#2796: *5345 CreateFile() "C:\ngx_openresty-1.9.7/html/test_lua" failed (2: The system cannot find the file specified), client: 127.0.0.1, server: localhost, request: "GET /test_lua HTTP/1.1", host: "localhost"
系统:win10 64位
编译时出现了很多错误,不知道如何去处理呢?
wget http://h264.code-shop.com/download/nginx_mod_h264_streaming-2.2.7.tar.gz
tar -zxvf nginx_mod_h264_streaming-2.2.7.tar.gz
配置如下:
./auto/configure --builddir=objs --prefix="c:/nginx-1.9.7"
--with-cc=cl --with-select_module
--with-cc-opt="-D FD_SETSIZE=4096 -D _NO_MINGW_LFS -D WATCOMC"
--conf-path=conf/nginx.conf --pid-path=logs/nginx.pid
--http-log-path=logs/access.log --error-log-path=logs/error.log
--sbin-path=nginx.exe --http-client-body-temp-path=temp/client_body_temp
--http-proxy-temp-path=temp/proxy_temp
--http-fastcgi-temp-path=temp/fastcgi_temp
--http-uwsgi-temp-path=temp/uwsgi_temp
--http-scgi-temp-path=temp/scgi_temp
--add-module=../nginx_mod_h264_streaming-2.2.7
--with-pcre=../pcre-8.32
--with-zlib=../zlib-1.2.7
如题
您好
使用win64版openresty 在win7 64位 里运行正常,但在win10 64位 执行 -t 或者 -s reload 、-s stop 只会出现一个一闪而过的弹框实际没任何效果。
使用的nginx-openresty-windows版本号:1.11.7.1001 ,修改日志显示:ngx-lua-module 模块更新到 0.10.7了
在lua代码中调用balancer.set_timeouts(6,nil,nil),报错,异常信息如下:
[error] 1928#10932: 1 failed to run balancer_by_lua: .\ngx\balancer.lua:139: cannot resolve symbol 'ngx_http_lua_ffi_balancer_set_timeouts': 找不到指定的程序。
同样的代码,使用openresty官网的二进制版本openresty-1.11.2.2-win32.zip ,测试正常,麻烦看下 是不是 模块ngx-lua-module未成功更新?
查看openresty官网,在ngx_lua 0.10.6版本已经增加该接口了
feature: added pure C API for setting upstream request connect/send/read timeouts in balancer_by_lua* on a per session basis. thanks Jianhao Dai for the original patch.
能否支持 balancer-by-lua 模块,见下面分支
https://github.com/openresty/lua-nginx-module/tree/balancer-by-lua
1.7.10.2002 的32位版本的下载路径(百度盘),仍然是2001版本
问题:1.9.10.1001到1.9.12.1001,nginx.pdb体积缩减将近2/3,是因为调整了编译调试参数的原因吗?这对生产环境使用上有何变化?
另外,比较编译参数,1.9.12.1001还增加了--with-http_slice_module模块。
谢谢!
events {
use iocp;
worker_connections 1024;
}
采用这样的配置后,页面会一直在等待加载
百度网盘提供的是32位版本的
Running in windows 10 nginx never start,
C:\nginx> nginx.exe
nginx never is started. No console output and cannot kill it
Try both 32bits and 64bits package.
请问能否尽快帮我解决,已经焦头烂额,谢谢。项目用到一半,又无法改变平台。我的qq:8221776
1)Post json时json大小超过一定尺寸后ngx.req.read_body()和local data = ngx.req.get_body_data()就返回nil,超过100k就一定会有这个问题。已经在配置文件设置client_max_body_size 10m;。日志中出现一行warning
2016/03/24 00:14:04 [warn] 5032#5716: *6 a client request body is buffered to a temporary file c:\App\GisService/temp/client_body_temp/0000000007, client: 127.0.0.1, server: , request: "POST /se/v1/test/12345678 HTTP/1.1", host: "127.0.0.1:8080"
2)lua在分析较大json时崩溃(大概100k左右,2000行),报错
nginx: lua atpanic: Lua VM crashed, reason: unknown reason
2016/03/24 08:58:12 [notice] 4756#8144: exiting
3)前期还发现日志输出太多时,开启代码缓存会直接不稳定,也报
nginx: lua atpanic: Lua VM crashed, reason: unknown reason
4)如果http配置段没有默认的defaulttype,在代码中设置content-type也会崩溃
nginx-openresty-windows 1.9.3.1 加入下面插件,报错
https://github.com/sourcelair/ceryx
2015/09/11 14:57:50 [alert] 4844#12732: lua_code_cache is off; this will hurt performance in D:\temp\openresty\ceryxnginx1.9.3.1/conf/nginx.conf:30
2015/09/11 14:57:59 [error] 4844#13492: *1 lua entry thread aborted: runtime error: .\resty\core\var.lua:56: cannot resolve symbol 'ngx_http_lua_ffi_var_get': 找不到指定的程序。
stack traceback:
coroutine 0:
[C]: in function '__index'
.\resty\core\var.lua:56: in function '__index'
D:\temp\openresty\ceryxnginx1.9.3.1/lualib/router.lua:1: in function <D:\temp\openresty\ceryxnginx1.9.3.1/lualib/router.lua:1>, client: 127.0.0.1, server: , request: "GET /test1 HTTP/1.1", host: "127.0.0.1:40080"
2015/09/11 14:57:59 [error] 4844#13492: *2 lua entry thread aborted: runtime error: .\resty\core\var.lua:56: cannot resolve symbol 'ngx_http_lua_ffi_var_get': 找不到指定的程序。
stack traceback:
coroutine 0:
[C]: in function '__index'
.\resty\core\var.lua:56: in function '__index'
D:\temp\openresty\ceryxnginx1.9.3.1/lualib/router.lua:1: in function <D:\temp\openresty\ceryxnginx1.9.3.1/lualib/router.lua:1>, client: 127.0.0.1, server: , request: "GET /favicon.ico HTTP/1.1", host: "127.0.0.1:40080", referrer: "http://127.0.0.1:40080/test1"
不知道是否支持IOCP呢?
../stream_lua/src/ngx_stream_lua_sleep.c(89): error C2039: “uri”: 不是“ngx_
ream_lua_request_s”的成员
e:\nginx\nginx-openresty-windows-master\src\stream_lua\src\ngx_stream_lua_requ
t.h(20): note: 参见“ngx_stream_lua_request_s”的声明
NMAKE : fatal error U1077: “"d:\Program Files (x86)\Microsoft Visual Studio\2
7\Community\VC\Tools\MSVC\14.10.25017\bin\HostX86\x86\cl.EXE"”: 返回代码“0x2
谢谢
I test on two computers.
version: 1.9.14.1001 32bit
system: windows xp
and
version: 1.9.14.1001 64bit
system: windows 7
Uncompress Openresty_For_Windows_1.9.14.1001_32or64Bit.zip and run nginx.exe directly. Then run "nginx -s quit" in the same folder. Just one nginx process is closed and the other one is still running.
网盘下载不了?
openresty 已发布 1.9.3.2
iocp版,IOCP下反向代理缓存模式,不能稳定访问
2016/10/25 12:34:00 [error] 4500#6348: init_worker_by_lua_file error: error loading module 'lfs' from file 'lfs.dll':
%1 不是有效的 Win32 应用程序。
stack traceback:
[C]: at 0x005ac900
[C]: in function 'require'
lualib/base.lua:9: in main chunk
[C]: in function 'require'
有计划对齐到1.9.3.1吗?
nginx: [emerg] invalid lua shared dict size "10m" in e:\nginx/conf/nginx.conf
lua_shared_dict dogs 10m;
最新64 bit 版本
win7 64位
Openresty_For_Windows_IOCP_1.11.5.1001_32Bit
和
Openresty_For_Windows_IOCP_1.11.5.1001_32Bit
访问postgres模块:
nginx.conf配置:
http {
upstream database {
postgres_server 127.0.0.1 dbname=test
user=test password=test;
}
server {
location / {
postgres_pass database;
postgres_query "SELECT * FROM cats";
}
}
}
浏览器访问:http://127.0.0.1,浏览器会一直等待响应。 nginx.exe会卡死,或者弹出窗口: nginx.exe已停止工作。
错误日志:
2019/09/06 15:39:38 [alert] 5628#4832: *1 add event 616 CreateIoCompletionPort() failed (87: The parameter is incorrect) while connecting to upstream, client: 127.0.0.1, server: localhost, request: "GET / HTTP/1.1", upstream: "postgres://127.0.0.1:5432", host: "127.0.0.1"
2019/09/06 15:39:38 [error] 5628#4832: *1 postgres: failed to add nginx connection while connecting to upstream, client: 127.0.0.1, server: localhost, request: "GET / HTTP/1.1", upstream: "postgres://127.0.0.1:5432", host: "127.0.0.1"
==========================================
另外按照教程编译nginx,32位没问题,64位的nginx.exe 一运行就报错:
应用程序无法启动,因为应用程序的并行配置不正确。有关详细信息,请参阅应用程序事件
日志,或使用命令行 sxstrace.exe 工具。
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.