摘要: nohup consul agent -server -ui -bootstrap-expect=1 -data-dir=/tmp/consul -node=consul-1 -client=0.0.0.0 -bind=0.0.0.0 -datacenter=dc1 -config-dir /etc 阅读全文
posted @ 2022-05-25 17:44 v587yy 阅读(55) 评论(0) 推荐(0) 编辑
摘要: start.up 添加FormOptions services.Configure<FormOptions>(options => { options.ValueCountLimit = int.MaxValue; // 5000 items max //options.ValueLengthLim 阅读全文
posted @ 2021-06-01 14:18 v587yy 阅读(95) 评论(0) 推荐(0) 编辑
摘要: Console.OutputEncoding = Encoding.UTF8; 阅读全文
posted @ 2021-05-27 13:51 v587yy 阅读(35) 评论(0) 推荐(0) 编辑
摘要: .net core 缺少 需要在 NuGet 里添加 System.Text.Encoding.CodePages 然后再startup添加注册 或者使用时注册 Encoding.RegisterProvider(CodePagesEncodingProvider.Instance); 阅读全文
posted @ 2021-05-27 13:35 v587yy 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 添加nuget包 Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation; Startup.cs 添加services.AddControllersWithViews().AddRazorRuntimeCompilation(); 阅读全文
posted @ 2021-04-12 16:19 v587yy 阅读(212) 评论(0) 推荐(0) 编辑
摘要: ServicePointManager.ServerCertificateValidationCallback = delegate { return true; }; ServicePointManager.SecurityProtocol = (SecurityProtocolType)192 阅读全文
posted @ 2021-01-07 14:36 v587yy 阅读(529) 评论(0) 推荐(0) 编辑
摘要: public static string HttpGet(string Url, string header = "", string senddata = "") { //byte[] dataArray = System.Text.Encoding.UTF8.GetBytes(senddata) 阅读全文
posted @ 2020-12-17 17:15 v587yy 阅读(1597) 评论(0) 推荐(0) 编辑
摘要: 添加新建项目 在默认程序中 配置 web.config文件 配置 system.serviceModel <services> <service name="s.Service1"> <endpoint binding="webHttpBinding" behaviorConfiguration=" 阅读全文
posted @ 2020-04-14 16:07 v587yy 阅读(325) 评论(0) 推荐(0) 编辑
摘要: 作为一个linux小白 当然是选择可视化界面分区工具 sudo yum install epel-release sudo yum install gparted 阅读全文
posted @ 2020-03-09 16:49 v587yy 阅读(4497) 评论(0) 推荐(0) 编辑
摘要: .Net Core 运行环境部署 安装运行环境 https://dotnet.microsoft.com/download/dotnet-core/current/runtime 下载安装完成后 运行cmd 输入dotnet --version 如果系统提示如下 安装c++环境 https://ww 阅读全文
posted @ 2020-01-07 15:15 v587yy 阅读(3801) 评论(0) 推荐(0) 编辑