正文
Skywalking 监控nginx的方法
https://blog.csdn.net/qq_31725371/article/details/85226116
https://www.jianshu.com/p/30684f94d5e0
过程
安装必备软件:
yum install -y gcc gcc-c++ make pcre-devel zlib-devel openssl-devel
现在必备软件:
https://luajit.org/download/LuaJIT-2.0.5.tar.gz
https://codeload.github.com/openresty/lua-tablepool/tar.gz/refs/tags/v0.02
https://codeload.github.com/openresty/lua-resty-lrucache/tar.gz/refs/tags/v0.13
https://codeload.github.com/openresty/lua-resty-core/tar.gz/refs/tags/v0.1.26
https://codeload.github.com/openresty/lua-nginx-module/tar.gz/refs/tags/v0.10.24
https://codeload.github.com/vision5/ngx_devel_kit/tar.gz/refs/tags/v0.3.2
http://nginx.org/download/nginx-1.24.0.tar.gz
编译安装luajit
tar -zxvf LuaJIT-2.0.5.tar.gz
cd LuaJIT-2.0.5
make install PREFIX=/usr/local/LuaJIT
export LUAJIT_LIB=/usr/local/LuaJIT/lib
export LUAJIT_INC=/usr/local/LuaJIT/include/luajit-2.0
nginx相关处理
tar -zxvf nginx-1.24.0.tar.gz
tar -zxvf lua-nginx-module-0.10.24.tar.gz
tar -zxvf ngx_devel_kit-0.3.2.tar.gz
编译nginx
./configure --prefix=/data/nginx \
--with-http_ssl_module --with-http_stub_status_module \
--with-http_dav_module --with-file-aio --with-http_dav_module \
--add-module=../ngx_devel_kit-0.3.2/ --add-module=../lua-nginx-module-0.10.24/
make && make install