Nginx實現負載均衡,以輪詢爲例

輪詢策略 一、單服務器實現nginx負載均衡 1.首先準備一臺服務器 nginx:localhost:10000 server1:localhost:10001 server2:localhost:10002 2.配置nginx.conf 1)設置輪詢策略 2)配置server1和server2 3.重啓nginx服務:systemctl restart nginx    訪問localhost:
相關文章
相關標籤/搜索