负载均衡
1 | docker run -d -p 7001:80 --name nginx1 nginx |
1 | echo '<h1>This is 1.</h1>' > /usr/share/nginx/html/index.html |
1 | echo '<h1>This is 2.</h1>' > /usr/share/nginx/html/index.html |
1 | echo '<h1>This is 3.</h1>' > /usr/share/nginx/html/index.html |
1 | upstream web{ |