All Projects → zhuzhao → SurgingDemoUpdate

zhuzhao / SurgingDemoUpdate

Licence: MIT license
https://github.com/billyang/SurgingDemo 更新Update

Programming Languages

C#
18002 projects
HTML
75241 projects
javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to SurgingDemoUpdate

Surging
Surging is a micro-service engine that provides a lightweight, high-performance, modular RPC request pipeline. The service engine supports http, TCP, WS,Grpc, Thrift,Mqtt, UDP, and DNS protocols. It uses ZooKeeper and Consul as a registry, and integrates it. Hash, random, polling, Fair Polling as a load balancing algorithm, built-in service gove…
Stars: ✭ 3,088 (+13326.09%)
Mutual labels:  surging

SurgingDemoUpdate

https://github.com/billyang/SurgingDemo 我把原来的demo 更新Update,升级到.net core 2.2,可以跑起来,没有错误。

让surging 微服务框 demo 跑起来的准备工作
看这个文章 https://www.cnblogs.com/alangur/p/8339905.html

1、下载 安装 erlang:https://www.erlang.org/ 最新版就可以

2、下载并 RabbitMQ http://www.rabbitmq.com/

  cmd 进入rabbitmq安装目录中的sbin目录执行

  rabbitmq-plugins enable rabbitmq_management

  重启rabbitmq服务生效

  打开http://localhost:15672/
即可看到管理后台 (默认的用户名跟密码均是guest,guest不能用于远程访问)

3、下载 consul 地址:https://www.consul.io/downloads.html
解压后 consul 路径放到环境变量path 中,cmd 目录下 运行 consul agent -dev

4、本机数据库,建一个库surging,用sql语句建一个表 ,sql文件在: SurgingDemo\SurgingDemo-master\src\sql 修改一下,Bill.Demo.DapperCore项目下的 DataBaseConfig.cs 里的数据库连接字符串

5、打开 这个 SurgingDemo\SurgingDemo-master\src\Bill.Demo.Solutions,还原包
看这篇文章 https://www.jianshu.com/p/6324626c87b7?tdsourcetag=s_pctim_aiomsg 设置三个启动项Surging.ApiGateway,Bill.Demo.Services.Server,Bill.Demo.Web

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].