In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-23 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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.