nginx 反向代理
nginx 反向代理
vim nginx.conf http { ..... upstream "tomcatweb" { server 172.30.13.199:8080; server 172.30.13.100:8080; } server { listen 80; location / { proxy_pass http://tomcatweb; } } }
/usr/local/nginx/sbin/nginx -t /usr/local/nginx/sbin/nginx -s stop /usr/local/nginx/sbin/nginx
公众号请关注:侠之大者