diff --git a/SlnMesnac.Serilog/SerilogExtensions.cs b/SlnMesnac.Serilog/SerilogExtensions.cs index b2f1846..a940a00 100644 --- a/SlnMesnac.Serilog/SerilogExtensions.cs +++ b/SlnMesnac.Serilog/SerilogExtensions.cs @@ -30,7 +30,7 @@ namespace SlnMesnac.Serilog //.WriteTo.File(Path.Combine(logPath, "Debug.log"), LogEventLevel.Debug, fileSizeLimitBytes: 5 * 1024) .CreateLogger(); app.UseSerilogRequestLogging(); - + Log.Information($"系统初始化完成,日志存放路径:{logPath}"); return app; } } diff --git a/SlnMesnac/Properties/launchSettings.json b/SlnMesnac/Properties/launchSettings.json index 3f9dcb9..132d84c 100644 --- a/SlnMesnac/Properties/launchSettings.json +++ b/SlnMesnac/Properties/launchSettings.json @@ -21,7 +21,7 @@ "commandName": "Project", "launchBrowser": true, //"launchUrl": "swagger", - "applicationUrl": "http://localhost:5000", + "applicationUrl": "http://localhost:5001", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development" } diff --git a/SlnMesnac/Startup.cs b/SlnMesnac/Startup.cs index 9d0a9dd..fede45b 100644 --- a/SlnMesnac/Startup.cs +++ b/SlnMesnac/Startup.cs @@ -84,16 +84,16 @@ namespace SlnMesnac services.AddServices(); //注册Quartz - services.AddQuartzSetUp(); + //services.AddQuartzSetUp(); //注册PLC services.AddPlcSetup(); //注册MQTT - services.AddMqttSetup(); + //services.AddMqttSetup(); //注册TouchSocket - services.AddTouchSocketSetup(); + //services.AddTouchSocketSetup(); } /// diff --git a/SlnMesnac/appsettings.json b/SlnMesnac/appsettings.json index d05c71e..f8e683a 100644 --- a/SlnMesnac/appsettings.json +++ b/SlnMesnac/appsettings.json @@ -8,7 +8,7 @@ }, "AllowedHosts": "*", "AppConfig": { - "logPath": "E:\\桌面\\日常代码\\SlnMesnac\\SlnMesnac\\bin\\Debug\\net6.0", + "logPath": "/Users/wenxiansheng/Desktop/日常代码/杜肯新材料程序设计/Durk.SlnMesnac/SlnMesnac/bin/Debug/net6.0", "mesConnStr": "server=.;uid=sa;pwd=123456;database=JiangYinMENS", "mcsConnStr": "Data Source=175.27.215.92/helowin;User ID=aucma_scada;Password=aucma" }