![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
nginx
禅剑一如
这个作者很懒,什么都没留下…
展开
-
docker演示nginx负载均衡
背景:在上篇docker演示nginx反向代理基础上继续 一、编写脚本 1. 分别编写load_balancing_8000.py、load_balancing_8001.py脚本(注意脚本对应端口分别为8000、8001) #!/usr/bin/python3 # -*- coding: UTF-8 -*- from flask import Flask app = Flask(__name__) @app.route('/api', methods=['GET']) def get_..原创 2020-06-24 11:33:13 · 130 阅读 · 0 评论 -
docker演示nginx反向代理
注:此处部分简单说明省略 一、拉取镜像 docker pull nginx:stable 二、编写配置 1. docker-compose.yml配置 version: '3.1' networks: shared: external: name: shared services: nginx: image: nginx:stable container_name: nginx # restart: always ports:原创 2020-06-24 10:20:42 · 168 阅读 · 0 评论