Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nginx的模块编译后出现"unknown directive ip2region_db" #314

Open
mike-hor opened this issue Aug 10, 2023 · 2 comments
Open

Nginx的模块编译后出现"unknown directive ip2region_db" #314

mike-hor opened this issue Aug 10, 2023 · 2 comments

Comments

@mike-hor
Copy link

首先感谢开源分享,我们这边因为nginx的访问量比较大所以需要分析用户的地理位置。
系统是CentOS6.7 编译过程中也没有明显的报错,ng 一开始用的 nginx-1.23.1 ,后面编译最新版也一样的情况。有其他人遇到一样的情况么?
image

@lionsoul2014
Copy link
Owner

可以 at nginx 模块作者看下 @wujjpp

@wujjpp
Copy link
Contributor

wujjpp commented Aug 23, 2023

@mike-hor 确认一下make install 之后,有没有执行 nginx -s stop, 因为 add-module 是将外部模块编译进nginx, 假如没有执行nginx -s stop, 直接执行 nginx -s reload 的话,那么新起来的worker进程还是从旧的nginx master进程 fork 出来的,所以会报unknown directive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants