Open hzy-6 opened 1 month ago
macOs M2max 运行程序无法启动,无法连接配置信息,和服务注册,windows11 可以运行
{ { // nacos 配置中心 "NacosConfig": { "Listeners": [ { "Optional": false, "DataId": "appsettings.json", "Group": "CalculationTask" }, { "Optional": false, "DataId": "appsettings.Production.json", "Group": "CalculationTask" } ], "Namespace": "Prod-Microservices-App", // 需要修改 这里请设置 Namespace ID 的值!!!!!!!! "ServerAddresses": [ "http://127.0.0.1:8848" ] // 需要修改 //"UserName": "nacos", //"Password": "nacos", //"AccessKey": "", //"SecretKey": "" //"EndPoint": "127.0.0.1" //"ConfigFilterAssemblies": [ "YouPrefix.AssemblyName" ], //"ConfigFilterAssemblies": null, //"ConfigFilterExtInfo": "some ext infomation" }, // nacos 服务 "Nacos": { "EndPoint": "", "ServerAddresses": [ "http://127.0.0.1:8848" ], "DefaultTimeOut": 60000, "Namespace": "Prod-Microservices-App", // 需要修改 这里请设置 Namespace ID 的值!!!!!!!! "ListenInterval": 2000, "ServiceName": "CalculationTask", // 需要修改 "GroupName": "DEFAULT_GROUP", "ClusterName": "DEFAULT", "Ip": "", "PreferredNetworks": "127.0", // select an IP that matches the prefix as the service registration IP "Port": 0, "Weight": 100, "RegisterEnabled": true, "InstanceEnabled": true, "Ephemeral": true, "Secure": false, //"AccessKey": "", //"SecretKey": "", //"UserName": "nacos", //"Password": "nacos", "ConfigUseRpc": false, "NamingUseRpc": false, "NamingLoadCacheAtStart": "", "LBStrategy": "WeightRandom", //WeightRandom WeightRoundRobin "Metadata": { "aa": "bb" } } } }
webApplicationBuilder.WebHost.UseNacosConfig(section: NacosConfigNodeName, parser: null, logAction: null); webApplicationBuilder.Services.AddNacosAspNet(webApplicationBuilder.Configuration, NacosNodeName); webApplicationBuilder.Services.AddSingleton<INacosConfigService, NacosConfigService>();
Arm 的问题,我近期会找时间看看。
最近有进展吗
Describe what happened (or what feature you want)
macOs M2max 运行程序无法启动,无法连接配置信息,和服务注册,windows11 可以运行
How to reproduce it (as minimally and precisely as possible)
Related code
Tell us your environment
Anything else we need to know?