Nginx端口转发反向代理负载均衡
最近做nginx方面的优化,想到了用反向代理的方式,因为只有一台机子,所以就用多个端口转发了。 1. 安装nginx,看官网就可以 2. vim /etc/nginx/nginx.conf http { ...... #site 是名称 upst »
最近做nginx方面的优化,想到了用反向代理的方式,因为只有一台机子,所以就用多个端口转发了。 1. 安装nginx,看官网就可以 2. vim /etc/nginx/nginx.conf http { ...... #site 是名称 upst »