Nginx 相关
1.负载均衡与高可用
upstream backServer{
server localhost:8080;
server localhost:6001;
}
server {
listen 8088;
server_name localhost;
location ^~ /test/ {
proxy_pass http://backServer/;
}
}
2.常用命令
nginx -s reload 重新加载配置文件启动
nginx -s stop 停止nginx服务
3. Nginx 自身的高可用,linux下可借助keepalived,windows 下可借助 NLB