在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
https://openresty.org/cn/download.html https://github.com/yaoweibin/nginx_upstream_check_module
tar -zxvf openresty-1.13.6.1.tar.gz
unzip nginx_upstream_check_module-master.zip mv nginx_upstream_check_module-master openresty-1.13.6.1/bundle
cd openresty-1.13.6.1/bundle/nginx-1.13.6 patch -p1 < ../nginx_upstream_check_module-master/check_1.12.1+.patch cd ../..
yum -y install pcre-devel
./configure --prefix=/opt/soft/nginx --with-luajit --with-http_iconv_module --with-http_postgres_module --with-pcre --add-module=./bundle/nginx_upstream_check_module-master/ -j8
make -j8 && make install
vim /opt/soft/nginx/nginx/conf/nginx.conf pid logs/nginx.pid; events { worker_connections 102400; } http { include mime.types; default_type application/octet-stream; log_format main '$time_local|$request_time|$upstream_response_time|$http_x_forwarded_for|$remote_addr|$upstream_addr|$server_addr|'
参考文献: https://openresty.org/cn/installation.html https://www.cnblogs.com/zdz8207/p/Nginx-Lua-OpenResty.html http://blog.csdn.net/moqiang02/article/details/42846375 http://jinnianshilongnian.iteye.com/blog/2186270
|
请发表评论