ITeye博客

nginx+tomcat配置负载均衡和集群

san586 · 2010-01-12 16:25 · ss3ex · 非技术 · Markdown

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

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,接下来的内容:配置负载均衡和集群

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。