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
上一篇:C语言数据类型转换


下一篇:C语言自动类型转换