多级缓存-OpenResty tomcat集群负载均衡
2023-09-27 14:29:10 时间
#user nobody;
worker_processes 1;
error_log logs/error.log;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
#nginx的业务集群,nginx本地缓存、redis缓存、tomcat查询
upstream nginx-cluster{
hash $request_uri;
server 192.168.8.118:8081;
server 192.168.8.118:8082;
}
server {
listen 80;
server_name localhost;
location /item {
proxy_pass http://nginx-cluster;
}
location / {
root html;
index index.html index.htm;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
}
相关文章
- tomcat优化---大数据量提交tomcat时,tomcat无法接收导致页面无反应
- 《JSP+Servlet+Tomcat应用开发从零開始学》
- [转]Tomcat启动java.lang.OutOfMemoryError: PermGen space错误解决
- Nginx + Tomcat 负载均衡配置详解
- tomcat启动后,页面浏览时报错 Unable to compile class for JSP的解决方案
- Tomcat集群,Nginx集群,Tomcat+Nginx 负载均衡配置,Tomcat+Nginx集群
- 用JvisualVM监视远程tomcat
- Tomcat安装及配置教程
- 征服 Nginx + Tomcat
- linux+nginx+tomcat负载均衡,实现session同步
- Nginx + Tomcat Windows下的负载均衡配置
- Nginx+keepalived做双机热备加tomcat负载均衡
- JavaWeb学习笔记:Tomcat
- Tomcat 启动startup.bat闪退的解决方法
- configure JDBCRealm JAAS for mysql and tomcat 7 with form based authentication--reference
- jconsole连接远程Tomcat应用
- DreamWeaver CS5 搭建Tomcat服务器 运行Jsp文件
- Nginx+Tomcat多实例及负载均衡配置