Table of Contents I. Install Baota Panel (V 6.8) II. Use Baota to Install Docker and Configure Alibaba Cloud Container Service III. Install Rancher (Server) IV. Manage Rancher and Add Clusters V. Add Rancher Applications, Services, and Nginx VI. De…
Table of Contents I. Install Baota Panel (V 6.8) II. Use Baota to Install Docker and Configure Alibaba Cloud Container Service III. Install Rancher (Server) IV. Manage Rancher and Add Clusters V. Add Rancher Applications, Services, and Nginx VI. De…
目录 一,安装宝塔面板(V 6.8) 二,使用宝塔安装 Docker,配置阿里云容器服务 三,安装 Rancher (Server) 四,管理 Rancher、添加集群 五,添加 Rancher 应用、服务,与 Nginx 六,ASP.NET Core 应用部署 七,相关文章推荐 前言: 本文使用 Centos 7.x 进行操作,Rancher 官方推荐使用 Ubuntu。 Docker 对内核要求 大于 3.10,你可以使用 uname -r 检测系统内容版本。 &nb…
1. Nginx Configuration File Nginx can be configured for reverse proxying, load balancing, etc. Its default configuration file is named nginx.conf. Generally, it is stored under /your_installation_directory/nginx/conf. Nginx loads its configuration information,…
1,Nginx 的 配置文件 Nginx 可以配置反向代理、负载均匀等, 其默认配置文件名为 nginx.conf 。 一般存放于 /你的安装目录/nginx/conf 下 Nginx 加载配置信息,可以把所有的配置都放进 nginx.conf 文件,也可以根据站点分别放到不同的文件,然后在 nginx.conf 文件中,使用 include 命令把配置文件包含进去。 nginx 的配置是立即生效的,也就是说,不需要关闭、重启 nginx ,修…
SQLite is convenient to use, simple and compact. The author will not elaborate further here; those interested can refer to the following blog. https://blog.csdn.net/qq_31930499/article/details/80420246 This article introduces how to create an ASP.NET Co…
SQLIte 操作方便,简单小巧,这里笔者就不再过多介绍,感兴趣可以到以下博文 https://blog.csdn.net/qq_31930499/article/details/80420246 文章介绍创建ASP.NET Core 程序,创建模型、上下文,生成数据库,对数据库增删查改。 并对每个过程进行详细介绍,使初学者尽快了解内容和相关知识,避免对某一知识点怀疑、卡在某个位置。 过程&目录 1 新建ASP.NET Core MVC 应用 1.1 新建MVC应用 …
The author's front-end files are as follows: The author adds Bootstrap 4 and Font Awesome (icon fonts) because Bootstrap 4 no longer includes icons. In ASP.NET Core, global CSS and JS files are usually set in the _Layout.cshtml file. There are two tags:…
笔者的前端文件如下 笔者增加Bootstrap 4 和 FontAwersome(字体图标),因为Bootsrap 4已经不再包含图标了。 ASp.Net Core 中,通常在 _Layout.cshtml 文件设置全局css、js文件, 其中有两个标签 <environment include="Development"> </environment> <environment exclude="Development"> </environment>…
In ASP.NET Core, files can be added to a static directory for direct download. However, this method may not be secure or flexible enough. We can add an action in the Controller to access any file on the server through this action. Action Format public FileResu…
ASP.NET Core 中,可以在静态目录添加文件,直接访问就可以下载。但是这种方法可能不安全,也不够灵活。 我们可以在 Controller 控制器中 添加 一个 Action,通过此Action,即可访问服务器的任何文件。 Action 格式 public FileResult Down() { return File(xxx,xxx,xxx); } 返回 FileResult 类型,File() 对象 就这么简单。 File() 对象 问题在于这个 File() 对象,应该怎么写 笔…
The startup process of ASP.NET Core applications is as follows Table of Contents Startup Class Configure() Method Middleware Using Middleware Parameter IApplicationBuilder of Configure Method Extension Methods -- Middleware provided by Microsoft 1. Start…
ASP.NET Core 程序启动过程如下 目录 Startup 类 Configure() 方法 中间件 使用中间件 Configure 方法 的参数 IApplicationBuilder Extension Methods(拓展方法)--微软提供的中间件 1, Startup 类 ASP.NET Core 应用使用 Startup 类,按照约定命名为 Startup 。 Startup 类: 可选择性地包括 ConfigureS…
The author did not study ASP.NET, but went directly to learn ASP.NET Core. After finishing the basics of ASP.NET Core MVC, I began to learn about the operating principles of ASP.NET Core. I discovered that there is a very important "conductor" called HttpConte…
笔者没有学 ASP.NET,直接学 ASP.NET Core ,学完 ASP.NET Core MVC 基础后,开始学习 ASP.NET Core 的运行原理。发现应用程序有一个非常主要的 “传导体” HttpContext 。 赶忙写一下笔记先。 目录 “传导体” HttpContext 操作 HttpContext 前期准备 HttpContext 类型的属性和方法 HttpContext 对象实践与测试 Request Response Item &l…
Table of Contents: System.ComponentModel Attribute Namespaces and Common Classes System.ComponentModel.DataAnnotations ComponentModel - Classes ComponentModel - Structs ComponentModel - Interfaces ComponentModel - Enums ComponentModel - Delegates Content is be…
目录: System.ComponentModel 特性命名空间与常用类 System.ComponentModel.DataAnnotations ComponentModel - Classes 类 ComponentModel - Structs 结构体 ComponentModel - Interfaces 界面 ComponentModel - Enums 枚举 ComponentModel - Delegates 委托 内容更新中 1,System.C…
The author recently studied the concept of expression trees and wrote this article to reinforce understanding. If there are any errors, please comment and point them out~ Concept of Expression Trees The creation of expression trees can be done using Lambda met…
笔者最近学了表达式树这一部分内容,为了加深理解,写文章巩固知识,如有错误,请评论指出~ 表达式树的概念 表达式树的创建有 Lambda法 和 组装法。 学习表达式树需要 委托、Lambda、Func<> 基础。 表达式树 形状可以参考 二叉树。 可以把表达式树理解成 数学表达式。 数学表达式的所有常量、符号为表达式树的底节点。每一次计算生成的结果是一个结点,或者说他们的共同结点就是他们应该进行的运算。 生成表达式树 表达式树的创建有 Lambda表达式法 和 组装法 为了方便,这里指定生成的表达…
In everyday use of delegates, the following common methods are available: Method NameDescription Clone Creates a shallow copy of the delegate. GetInvocationList Returns a list of calls for this multicast delegate in the order they wil…
在日常使用委托时,有以下常用方法 方法名称说明 Clone 创建委托的浅表副本。 GetInvocationList 按照调用顺序返回此多路广播委托的调用列表。 GetMethodImpl 返回由当前的 MulticastDelegate 表示的静态方法。 GetObjectData 用序列化该实例所需的所有数据填充 SerializationInfo 对象。 Membe…