nginx 负载配置
来源:互联网 发布:javascript 位运算 编辑:程序博客网 时间:2024/04/26 11:31
官网下载:http://www.pcre.org/
# wget http://sourceforge.net/projects/pcre/files/pcre/8.35/pcre-8.35.tar.gz/download
二、安装zlib
# ./configure --prefix=/usr/local/zlib
# make && make install
三、安装openssl
# wget http://www.openssl.org/source/openssl-1.0.1h.tar.gz
# cd openssl-1.0.1h.tar.gz
# tar -xzvf openssl-1.0.1h.tar.gz
四、安装nginx
tar zxvf nginx-1.7.3.tar.gz
./configure --prefix=/usr/local/nginx --with-pcre=../pcre-8.35 --with-http_stub_status_module --with-http_ssl_module --with-zlib=../zlib-1.2.8 --with-openssl=../openssl-1.0.1h
make
make install
检查是否安装成功
cd /usr/local/nginx/sbin
./nginx -t
重启
/usr/local/nginx/sbin/nginx -s reload
nginx.conf
upstream miu-member-server {
server 172.17.190.32:4020;
server 172.17.190.33:4020;
}
upstream miu-mobile-server {
server 172.17.190.32:4010;
server 172.17.190.33:4010;
}
upstream miu-wechat-server {
server 172.17.190.34:4030;
server 172.17.190.35:4030;
}
upstream image {
server 172.17.190.34:4040;
server 172.17.190.35:4040;
}
location /miu-mobile-server/ {
proxy_pass http://miu-mobile-server/;
proxy_redirect default;
}
location /miu-member-server/ {
proxy_pass http://miu-member-server/;
proxy_redirect default;
}
location /miu-wechat-server/ {
proxy_pass http://miu-wechat-server/;
proxy_redirect default;
}
location /image/ {
proxy_pass http://image/;
proxy_redirect default;
}
location ~ /(favicon.ico|robots.txt) {
log_not_found off;
}
- nginx配置负载负载均衡
- nginx 负载均衡配置
- nginx配置负载均衡
- nginx负载均衡配置
- Nginx负载均衡配置
- Nginx负载均衡配置
- Nginx负载均衡配置
- nginx负载均衡配置
- Nginx 负载均衡配置
- nginx负载均衡配置
- nginx 负载配置
- nginx负载均衡配置
- nginx负载均衡配置
- nginx负载均衡配置
- nginx 负载均衡配置
- nginx配置负载均衡
- nginx配置负载均衡
- 配置Nginx负载均衡
- ckeditor+ckfinder解决需求:不同用户文件上传到不同用户文件夹
- oracle的nvl和sql server的isnull
- 编译XCODE的时候,如果修改从10.8到10.7版本
- easyui datagrid 在ie中无效参数问题
- ActionBar的方法
- nginx 负载配置
- 在MOSS2007中开发并部署自定义WebService
- sendmail: fatal: chdir /var/spool/Postfix: Permission denied
- <iframe 去掉黑色边框
- Sql2008安装提示需重启但重启后问题依旧的解决方法
- cpe移植到framework后,原有数据库存放问题的解决。
- ios内存管理机制转载
- android关于shape的使用
- asp.net 狼奔 Dal层数据过滤