-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathreadme.txt
93 lines (38 loc) · 1.73 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
dotnet WebApp.dll --ip 127.0.0.1 --port 8889
dotnet WebAppService.dll --ip 127.0.0.1 --port 5001
dotnet WebAppService.dll --ip 127.0.0.1 --port 5002
cmdÆô¶¯·½Ê½
set ASPNETCORE_URLS=http://127.0.0.1:5001
dotnet smsservice1.dll
set ASPNETCORE_URLS=http://127.0.0.1:5002
dotnet emailservice1.dll
powershellÆô¶¯·½Ê½
# Unix:
ASPNETCORE_URLS="https://*:5123" dotnet run
# Windows PowerShell:
$env:ASPNETCORE_URLS="https://*:5123" ; dotnet run
# Windows CMD (note: no quotes):
SET ASPNETCORE_URLS=https://*:5123 && dotnet run
dotnet ocelotserver1.dll
dotnet smsservice2.dll --ip 127.0.0.1 --port 5001
dotnet smsservice2.dll --ip 127.0.0.1 --port 5002
dotnet ocelotserver2.dll
set ASPNETCORE_URLS=http://127.0.0.1:5001
dotnet JWTTokenServer1.dll
http://127.0.0.1:5001
set ASPNETCORE_URLS=http://127.0.0.1:5002
dotnet calcservice3.dll
set ASPNETCORE_URLS=http://127.0.0.1:5000
dotnet ocelotserver3.dll
dotnet ID4.IdServer.dll
set ASPNETCORE_URLS=http://127.0.0.1:10000
dotnet ocelot_id4server.dll
dotnet MsgService.dll --ip 127.0.0.1 --port 5001
dotnet ProductService.dll --ip 127.0.0.1 --port 5002
dotnet ocelottest1.dll
Ocelot+Consul
dotnet MsgService.dll --ip 127.0.0.1 --port 5002
Exception: Unable to start Ocelot, errors are: Unable to start Ocelot, errors are: Unable to start Ocelot because either a ReRoute or GlobalConfiguration are using ServiceDiscoveryOptions but no ServiceDiscoveryFinderDelegate has been registered in dependency injection container. Are you missing a package like Ocelot.Provider.Consul and services.AddConsul() or Ocelot.Provider.Eureka and services.AddEureka()?
##############################################
services.AddOcelot().AddConsul();
##############################################