nginx_upstream_check_module
来源:互联网 发布:如何安装ubuntu双系统 编辑:程序博客网 时间:2024/05/22 08:29
1
2
3
cd
/usr/local/src/
wget https:
//github
.com
/yaoweibin/nginx_upstream_check_module/archive/master
.zip
unzip master.zip
1
2
3
tar
-zxvf pcre-8.21.
tar
.gz
cd
pcre-8.21
.
/configure
&&
make
&& makeinstall
1
2
tar
-zxvf nginx-1.3.0.
tar
.gz
cd
nginx-1.3.0
1
patch -p1 <
/usr/local/src/nginx_upstream_check_module-master/check_1
.2.1.patch
1
.
/configure
--user=www --group=www --prefix=
/usr/local/nginx
--sbin-path=
/usr/local/nginx/sbin/nginx
--conf-path=
/usr/local/nginx/conf/nginx
.conf --with-http_stub_status_module --with-http_ssl_module --with-pcre=
/usr/local/src/pcre-8
.21 --lock-path=
/var/run/nginx
.lock --pid-path=
/var/run/nginx
.pid --add-module=
/usr/local/src/nginx_upstream_check_module-master
1
make
&&
make
install
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
upstream www {
#ip_hash;
server 192.168.100.11:80;
#多个realserver服务器在此添加
server 192.168.100.12:80;
check interval=3000 rise=2 fall=5 timeout=1000;
}
server {
listen 80;
server_name www.etiantian.org;
#charset koi8-r;
access_log logs
/host
.access.log main;
root
/data0/www
;
location / {
proxy_pass http:
//www
;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location
/status
{
check_status;
access_log off;
#allow SOME.IP.ADD.RESS;
#deny all;
}
}
1
2
3
/usr/local/nginx/sbin/nginx
-t
nginx: the configuration
file
/usr/local/nginx/conf/nginx
.conf syntax is ok
nginx: configuration
file
/usr/local/nginx/conf/nginx
.conf
test
is successful
1
/usr/local/nginx/sbin/nginx
&
阅读全文
0 0
- nginx_upstream_check_module
- nginx_upstream_check_module(原文)
- 安装nginx_upstream_check_module时make出错,求助
- nginx利用第三方模块nginx_upstream_check_module来检查后端服务器的健康情况
- nginx利用第三方模块nginx_upstream_check_module来检查后端服务器的健康情况
- nginx利用第三方模块nginx_upstream_check_module来检查后端服务器的健康情况
- Nginx容器动态流量管理方案-nginx-upsync-module+nginx_upstream_check_module初体验
- Nginx容器动态流量管理方案-nginx-upsync-module+nginx_upstream_check_module初体验
- nginx利用第三方模块nginx_upstream_check_module来检查后端服务器的健康情况
- nginx利用第三方模块nginx_upstream_check_module来检查后端服务器的健康情况
- nginx利用第三方模块nginx_upstream_check_module来检查后端服务器的健康情况
- nginx入门学习—— 在已安装好的nginx上添加nginx_upstream_check_module模块(三)
- Spring3.1.0实现原理分析(十四).MVC之处理器映射
- dubbo 实践
- 用于Matlab的多摄像机系统校准工具箱 用于Matlab的多摄像机系统校准工具箱 这是用于校准多摄像机系统的工具箱。该工具箱的要求是系统中的两个相邻摄像机应该能够同时看到校准板的某些部分。一般来说
- Python之数组(array)使用方法总结与Numpy中的数组用法
- 计算机网络
- nginx_upstream_check_module
- doc2vec用于训练文本向量-deeplearning4j实现
- Cookie完成自动登录及Config和ServletContext
- SpringMVC 解决IE8浏览器把返回报文格式application/json当文件下载的问题
- android Audio OverView之二(hal)
- 自定义你的前端组件(shadow-DOM)二
- SVM支持向量机目标函数及参数训练过程说明解读
- WebSocket学习01
- CENTOS7 下安装Chrome