In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
First of all, nginx needs to know that forward proxy, reverse proxy
Forward proxy: to access GG, you definitely need a FQ at this time, then find an agent that can access a foreign country, and then the agent accesses the GG and passes the data to us. At this time, the position of the agent is the forward agent.
Reverse proxy: for example, when accessing a treasure, the agent is the server. After receiving the nginx, you distribute the rules to the back-end business processing server for processing.
Environment
Tomcat8080 tomcat8081
Nginx acts as a reverse proxy
Nginx configuration this configuration is in the http tag
Upstream myserver {server 192.168.4.4 server 8080 weight=5 max_fails=2 fail_timeout=3; server 192.168.4.4 weight=5 max_fails=2 fail_timeout=3;} server {listen 81; location / {root html; index index.html index.htm; proxy_pass http://myserver;}}
Visit the address of 192.168.4.4 tomcat 81 and access different VLANs according to the scheduling algorithm.
Scheduling algorithm:
To train in rotation.
Weight set a weight value
Ip_hash haship address
Url_hash hash url
Fair intelligent scheduling, which dynamically balances the time from request processing to response from the back-end server.
Each has its own advantages, and the best one is fair.
Link: https://zhuanlan.zhihu.com/p/34943332
Http://www.linuxe.cn/post-182.html
Nginx monitoring is basically similar to tomcat monitoring indicators, error code, traffic, saturation
This link is well written, https://linux.cn/article-5970-1.html.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.