ITeye博客

nginx

共 4 篇文章

网站并发性能测试

E:\Program Files\Apache Software Foundation\Apache2.2\bin>ab -n 1000 -c 10 http://www.abc.com/ This is ApacheBench, Version 2.3 <$Revision: 655654 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmark…

2012-06-14 00:36 · jsp · cache · architecture · server · nginx · Apache · nginx · Tomcat · ab

一台nginx带多个域名多个tomcat情况的配置

部署情况说: 多个域名,其中2个域名需支持泛域名解析 1、www.abc.com 2、www.bcd.com 3、*.efg.com 4、*.hij.com 其中1,2,3为一台tomcat 4为独立tomcat 前端一台nginx 通过配置多个虚拟主机来实现该部署。 =============================== 进入/etc/nginx/conf.d目录,所有虚拟主机的配置文件都在该目录下存放,配置。 1,2配置简单。可参考 http://wutaoo.iteye.com/blog/1167559 3 配置 需支持泛域名 A virtual host using mix …

2011-09-07 17:23 · server · nginx · nginx · Tomcat

nginx集成多台tomcat虚拟主机配置说明

nginx.conf 最后一行包含以下文字: include /etc/nginx/conf.d/*.conf; 表示配置虚拟主机文件在 /conf.d 文件夹中 在 /etc/nginx/conf.d 文件夹中创建2个配置文件 tomcat1.conf tomcat2.conf tomcat1.conf server { listen 80; server_name tomcat1.abc.net; location / { proxy_pass http://192.168.1.2:8080; } } tomcat2.conf server { listen 80; server_nam…

2011-09-07 14:09 · server · nginx

nginx基本操作

启动 1、基本启动 /usr/bin/nginx 2、高级启动 /usr/bin/nginx -t -c ~/mynginx.conf -g "pid /var/run/nginx.pid; worker_processes 2;" 可选项: -c </path/to/config> Specify which configuration file Nginx should use instead of the default.指定启动的配置文件 -g Set global directives. (version >=0.7.4) 设置全局指令 -t Don't run, just tes…

2011-09-07 11:11 · server · nginx