---
title: "nginx+tomcat配置负载均衡和集群"
author: "san586"
date: "2010-01-12T16:25:33Z"
tags: []
categories: ["非技术"]
slug: "nginx-tomcat"
draft: true
lastmod: "2010-01-12T16:25:33Z"
id: 568526
url: "https://ss3ex.iteye.com/blog/568526"
---

1、下载nginx（nginx/Windows-0.8.32），地址为：
http://nginx.org/en/download.html 
2、解压到D:\nginx-0.8.32\nginx-0.8.32路径
3、修改D:\nginx-0.8.32\nginx-0.8.32\conf下的nginx.conf文件内容：
找到下面内容，去掉#注释，然后把name改为：localhost

```java
server {
        listen       8000;
        listen       localhost:8080;
        server_name  localhost  alias  gg;

        location / {
            root   html;
            index  index.html index.htm;
        }
    }
```

4、双击nginx.exe，一闪而过。
5、地址栏输入：http://localhost
6、刚开始学nginx，接下来的内容:配置负载均衡和集群