# 微服务学习 **Repository Path**: yingmanji/micro_service_learning ## Basic Information - **Project Name**: 微服务学习 - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2018-07-13 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 微服务学习 #### 软件架构 Consul+Ocelot+.Net Core+Polly #### 安装教程 vs2017 .net core nuget还原 #### 使用说明 1. 生成项目 2. 开启consul: consul agent -dev consul默认在8500端口 3.开启服务 在生成dll里边用命令启动 SmsApi 和 UserApi 这两个服务端口可以自己指定 但注意不要占用 8500和9999(ocelot) dotnet SmsApi.dll --ip 127.0.0.1 --port 8888 dotnet UserApi.dll --ip 127.0.0.1 --port 8889 5. 开启ocelot 直接启动OcelotTest程序集 端口写死9999 可以自己改代码 ![avatar](/ocelot配置.png)