Fork me on GitHub

2023年3月21日

23种设计模式

摘要: 一、创建型 1,AbstractFactory(抽象工厂,对象模式) 2,Builder(建造者,对象模式) 3,Factory Method(工厂方法,类创模式) 4,Prototype(原型,对象模式) 5,Singleton(单例,对象模式) 二、结构型 1,Adapter(适配器,类模式) 阅读全文

posted @ 2023-03-21 22:56 *Hunter 阅读(25) 评论(0) 推荐(0) 编辑

2022年1月3日

Kubernetes

摘要: kubectl get pods -o wide 显示pod的ip所运行的节点 kubectl describe pod kubia-hczji kubectl get po kubia-hczji -o yaml 查看yaml定义 apiVersion: v1 kind: pod metadata 阅读全文

posted @ 2022-01-03 22:20 *Hunter 阅读(24) 评论(0) 推荐(0) 编辑

2021年1月26日

Abpvnext笔记

摘要: 1,依赖注入 EntityframeworkDemoSchemaDbMigrator : IDemoSchemaDbMigrator, ITransientDependency 约定:实现类后面的命令必须包含DemoSchemaDbMigrator 2,appsettings.json ①始终复制 阅读全文

posted @ 2021-01-26 11:14 *Hunter 阅读(265) 评论(0) 推荐(0) 编辑

2021年1月24日

软件架构设计师笔记

摘要: 一、计算机基础 1,冯诺依曼计算机 计算机由五大部件组成(控制器、运算器、存储器、输入设备、输出设备) 指令和数据以同等地位存与存储器,可按地址寻访 指令和数据用二进制表示 指令由操作码(+-*/转移指令等等)和地址码组成 存储程序 以运算器为中心 ①五大部件 运算器:算数运算(+-*/)、逻辑运算 阅读全文

posted @ 2021-01-24 15:01 *Hunter 阅读(430) 评论(0) 推荐(0) 编辑

2021年1月5日

swagger

摘要: 1,添加引用 <GenerateDocumentationFile>true</GenerateDocumentationFile> <NoWarn>$(NoWarn);1591</NoWarn> 生成注释文件 <Project Sdk="Microsoft.NET.Sdk.Web"> <Prope 阅读全文

posted @ 2021-01-05 11:13 *Hunter 阅读(99) 评论(0) 推荐(0) 编辑

2020年12月25日

Serilog

摘要: 1,引用包 <PackageReference Include="Serilog.Extensions.Hosting" Version="3.1.0" /> <PackageReference Include="Serilog.Sinks.Async" Version="1.4.0" /> <Pa 阅读全文

posted @ 2020-12-25 17:58 *Hunter 阅读(172) 评论(0) 推荐(0) 编辑

2020年12月12日

Nginx

摘要: 一、安装Nginx 1,安装nginx nginx官网地址:http://nginx.org/en/download.html yum install pcre pcre-devel -y 安装依赖包 yum install -y openssl openssl-devel 安装依赖包 wget h 阅读全文

posted @ 2020-12-12 11:48 *Hunter 阅读(146) 评论(0) 推荐(0) 编辑

2020年10月30日

Linux学习笔记

摘要: 一、基本Liunx命令二、管道符、重定向与环境变量三、Vim编辑器四、Shell命令脚本五、用户身份与文件权限六、存储结构与磁盘划分七、RAID与LVM磁盘阵列技术八、iptables与firewalld防火墙九、使用ssh服务管理远程主机十、使用Apache服务部署静态网站十一、使用vsftpd服 阅读全文

posted @ 2020-10-30 00:42 *Hunter 阅读(415) 评论(0) 推荐(0) 编辑

2020年8月12日

nest客户端

摘要: 一、客户端封装 using Elasticsearch.Net; using Nest; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace esdemo { 阅读全文

posted @ 2020-08-12 14:08 *Hunter 阅读(177) 评论(0) 推荐(0) 编辑

2020年6月25日

设计模式之美笔记

摘要: 一、好代码的评判标准 1,可维护性:在不破坏原有代码设计,不引入新的bug情况下,能够快速的修改或者添加代码。 2,可读性:代码是否符合编码规范,命名是否答意,注释是否详尽,函数是否长短合适,模块划分是否清晰,是否符合高内聚低耦合等等 3,可扩展性:在不修改或者少量修改原有代码的情况下,通过扩展点的 阅读全文

posted @ 2020-06-25 11:08 *Hunter 阅读(945) 评论(0) 推荐(0) 编辑

2020年5月5日

Docker笔记

摘要: 一、安装docker 1,卸载旧版本 $ sudo yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest \ docker-latest-logrotate \ docker- 阅读全文

posted @ 2020-05-05 13:05 *Hunter 阅读(200) 评论(0) 推荐(0) 编辑

2020年5月2日

elasticsearch 安全

摘要: 一、集群身份认证与用户鉴权 1,开启es安全模块 #启动单节点 bin/elasticsearch -E node.name=node0 -E cluster.name=geektime -E path.data=node0_data -E http.port=9200 -E xpack.secur 阅读全文

posted @ 2020-05-02 17:05 *Hunter 阅读(497) 评论(0) 推荐(0) 编辑

2020年5月1日

elasticsearch 集群

摘要: 一、节点 1,Coordination Node ①处理请求的节点,叫Coordination Node,路由请求到正确的节点,例如创建索引的请求,需要路由到master节点 ②所有节点默认都是Coordination Node ③通过将其他类型设置false,使其成为Dedicated Coord 阅读全文

posted @ 2020-05-01 16:15 *Hunter 阅读(262) 评论(0) 推荐(0) 编辑

2020年4月6日

Search Api

摘要: 语法 范围 /_search 集群上所有的索引 /index1/_search index1 /index1,index2/_search index1,index2 /index*/_search 以index开头的索引 Term :Beautiful Mind 等效于 Beautiful OR 阅读全文

posted @ 2020-04-06 23:01 *Hunter 阅读(265) 评论(0) 推荐(0) 编辑

Analyzer分词器

摘要: 一、Elasticsearch内置分词器 #Simple Analyzer – 按照非字母切分(符号被过滤),小写处理 #Stop Analyzer – 小写处理,停用词过滤(the,a,is) #Whitespace Analyzer – 按照空格切分,不转小写 #Keyword Analyzer 阅读全文

posted @ 2020-04-06 22:43 *Hunter 阅读(473) 评论(0) 推荐(0) 编辑

elasticsearch简单使用

摘要: 一、索引与文档 //查看索引相关信息 GET movies //查看索引文档总数 GET movies/_count 二、集群与分片 1,查看集群的健康状况 GET _cluster/health green - 主分片副本都正常分配 yellow - 主分片全部正常分配,有副本分片未能正常分配 r 阅读全文

posted @ 2020-04-06 15:58 *Hunter 阅读(400) 评论(0) 推荐(0) 编辑

2020年4月5日

centos7安装elasticsearch

摘要: 本案例测试es版本等环境下载:链接: https://pan.baidu.com/s/1txx_TxE-bTYwqQEBKxtMKQ 提取码: xrrh 官网下载 https://www.elastic.co/cn/downloads/elasticsearch 一、准备环境 es需要有java环境 阅读全文

posted @ 2020-04-05 18:36 *Hunter 阅读(907) 评论(0) 推荐(0) 编辑

2019年8月1日

nginx安装

摘要: 一、centos平台编译环境安装 1,安装make: 2,安装g++: 二、安装依赖库(cd /usr/local/src) 1,安装PCRE库(ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/) 2,安装zlib库(http://zlib 阅读全文

posted @ 2019-08-01 19:09 *Hunter 阅读(149) 评论(0) 推荐(0) 编辑

2018年10月29日

Emit学习笔记

摘要: 1,给字段设置值,并返回 阅读全文

posted @ 2018-10-29 17:16 *Hunter 阅读(150) 评论(0) 推荐(0) 编辑

2018年7月12日

Docker备忘录

摘要: centOS安装教程:https://docs.docker-cn.com/engine/installation/linux/docker-ce/centos/ 一、常用命令 $ sudo systemctl start docker //启动docker $ docker run -d -p 2 阅读全文

posted @ 2018-07-12 20:18 *Hunter 阅读(240) 评论(0) 推荐(0) 编辑

2018年7月4日

IdentityServer4-参考

摘要: 一、Identity Resource 二、API Resource 三、Client 四、GrantValidationResult 五、Profile Service 六、IdentityServer Interaction Service 七、IdentityServer Options 八、 阅读全文

posted @ 2018-07-04 20:33 *Hunter 阅读(767) 评论(0) 推荐(1) 编辑

IdentityServer4-端点

摘要: 一、发现端点 二、授权端点 三、令牌端点 四、UserInfo端点 五、Introspection端点 六、撤销端点 七、结束会话端点 一、发现端点 发现端点可用于检索有关IdentityServer的元数据 - 它返回诸如颁发者名称,密钥材料,支持的范围等信息。 发现端点可通过/.well-kno 阅读全文

posted @ 2018-07-04 19:39 *Hunter 阅读(875) 评论(0) 推荐(1) 编辑

2018年6月28日

IdentityServer4-主题

摘要: 一、Startup 二、定义Resources 三、定义Clients 四、登录 五、使用外部身份提供商登录 六、Windows身份验证 七、登出 八、注销外部身份提供商 九、联合注销 十、联合网关 十一、Consent 十二、保护APIs 十三、部署 十四、日志 十五、事件 十六、Cryptogr 阅读全文

posted @ 2018-06-28 19:37 *Hunter 阅读(1052) 评论(0) 推荐(2) 编辑

2018年6月25日

css

摘要: 1,CSS中图片于文本的基线对齐设置 2,inline , block, inline-block 1,CSS中图片于文本的基线对齐设置 设置各对象的vertical-align属性,属性说明: baseline-将支持valign特性的对象的内容与基线对齐sub-垂直对齐文本的下标super-垂直 阅读全文

posted @ 2018-06-25 15:48 *Hunter 阅读(122) 评论(0) 推荐(0) 编辑

2018年6月17日

IdentityServer4-快速入门

摘要: 一、设置和概述 二、使用客户端凭证保护API 三、使用密码保护API 四、使用OpenID Connect添加用户验证 五、添加对外部认证的支持 六、切换到Hybrid Flow并添加API访问权限 七、Using ASP.NET Core Identity 八、添加一个JavaScript客户端 阅读全文

posted @ 2018-06-17 18:54 *Hunter 阅读(1068) 评论(0) 推荐(1) 编辑

IdentityServer4-介绍

摘要: 一、总体介绍 大多数现代应用或多或少是这样的: 通常,每个层(前端、中间层和后端)都必须保护资源并实现身份验证和/或授权——通常针对相同的用户存储。 将这些基本的安全功能外包给安全令牌服务,可以防止在这些应用程序和端点之间重复这些功能。 重组应用程序以支持安全令牌服务将导致以下架构和协议: 这种设计 阅读全文

posted @ 2018-06-17 16:51 *Hunter 阅读(426) 评论(0) 推荐(0) 编辑

IdentityServer4目录

摘要: 一、介绍 二、快速入门 三、主题 四、端点 五、参考 IdentityServer4是ASP.NET Core 2的OpenID Connect和OAuth 2.0框架。 它可以在您的应用程序中启用以下功能: 身份验证服务 所有应用程序的集中式登录逻辑和工作流程(web,本地,移动,服务)Ident 阅读全文

posted @ 2018-06-17 16:27 *Hunter 阅读(223) 评论(0) 推荐(0) 编辑

2018年6月14日

ApiCloud

摘要: 一、config.xml配置文件 <widget id="A12345678901" version="0.0.1"> <name>API Example</name> <description> API Example App. </description> <author email="deve 阅读全文

posted @ 2018-06-14 14:56 *Hunter 阅读(377) 评论(0) 推荐(0) 编辑

学习ApiCloud遇到的问题

摘要: 1,当前账户xx 似乎没有权限访问此应用的云端数据,请切换账 检查项目的config.xml的id与apicloud的应用id是否一致 阅读全文

posted @ 2018-06-14 14:24 *Hunter 阅读(386) 评论(0) 推荐(0) 编辑

2018年6月7日

EntityFramework Core

摘要: 1,安装EF Core 在.csproj中添加一下配置,用于使用dotnet ef 命令 <ItemGroup> <DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="2.0.0" 阅读全文

posted @ 2018-06-07 20:24 *Hunter 阅读(168) 评论(0) 推荐(0) 编辑

2018年6月5日

asp.net core 托管与部署

摘要: 一、使用IIS在Windows上进行托管 1,部署asp.net core ①检查安装最新的SDK和运行时 https://www.microsoft.com/net/download/windows#/runtime IIS需要跑asp.net core必须要安装Runtime ②执行 dotne 阅读全文

posted @ 2018-06-05 15:38 *Hunter 阅读(598) 评论(0) 推荐(1) 编辑

2018年6月4日

asp.net core signalR

摘要: 一、asp.net core使用signalR入门 1,nuget Microsoft.AspNetCore.SignalR 2,新建ChatHub文件 using Microsoft.AspNetCore.SignalR; using System.Threading.Tasks; namespa 阅读全文

posted @ 2018-06-04 19:13 *Hunter 阅读(405) 评论(0) 推荐(0) 编辑

2018年5月4日

asp.net core for vs code

摘要: 1,命令 2,模板 3,更换启动浏览器 4,vscode使用nuget 5,使用ef migration 6,配置.net core的工作目录 7,使用dotnet ef migrations命令 8,指定migration生成的目录 9,vscode使用Bower 10,引用项目 1,命令 dot 阅读全文

posted @ 2018-05-04 17:09 *Hunter 阅读(236) 评论(0) 推荐(0) 编辑

2018年5月3日

asp.net core模块学习

摘要: 一、配置管理 二、管道 三、认证与授权 四、MVCDemo 五、IdentityServer4 一、配置管理 1,读取内存配置 using System; using Microsoft.Extensions.Configuration; using System.Collections.Gener 阅读全文

posted @ 2018-05-03 20:01 *Hunter 阅读(240) 评论(0) 推荐(0) 编辑

2018年4月21日

Asp.net SignalR

摘要: 一、介绍 SignalR对websocket、SSE、长连接、forever frame进行封装。 websocket(html5):ws协议,这个协议基于tcp的。也就是说和http没有关系(兼容性不好) SSE:客户端订阅服务器的一个事件,然后方便通过这个事件推送到客户端。 server => 阅读全文

posted @ 2018-04-21 18:03 *Hunter 阅读(420) 评论(0) 推荐(0) 编辑

2018年4月12日

Quartz.Net

摘要: 一、简单的Quartz程序 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Quartz; using 阅读全文

posted @ 2018-04-12 18:38 *Hunter 阅读(402) 评论(1) 推荐(0) 编辑

2018年4月4日

git使用经验for windows

摘要: 一、本地同步fork的最新版本 二、git命令 一、本地同步fork的最新版本 ①打开Git CMD工具,进入git的主目录 ②使用 git remote -v 查看fork的远程仓库地址 origin:为我fork的远程仓储的名字 paySource:为原项目github地址(需要使用命令 git 阅读全文

posted @ 2018-04-04 13:47 *Hunter 阅读(232) 评论(0) 推荐(0) 编辑

2018年3月27日

RabbitMQ学习笔记

摘要: 一、rabbitmqctl 启动rabbitmq rabbitmqctl start_app 关闭rabbitmq rabbitmqctl stop_app 格式化rabbitmq rabbitmqctl reset (格式化之前需要先关闭rabbitmq) 强制格式化rabbitmq rabbit 阅读全文

posted @ 2018-03-27 19:27 *Hunter 阅读(419) 评论(0) 推荐(0) 编辑

2018年3月25日

18,EasyNetQ-使用替代DI容器

摘要: EasyNetQ由独立组件组成。 它在内部使用称为DefaultServiceProvider的小型内部DI(IoC)容器。 如果您查看用于创建核心IBus接口实例的静态RabbitHutch类的代码,您将看到它仅创建一个新的DefaultServiceProvider,注册所有EasyNetQ组件 阅读全文

posted @ 2018-03-25 22:56 *Hunter 阅读(566) 评论(0) 推荐(0) 编辑

17,EasyNetQ-替换EasyNetQ组件

摘要: EasyNetQ是一个由小型组件组成的库。 当你写: ...静态方法CreateBus使用一个微小的内部IoC容器来组装这些组件。 CreateBus方法的重载允许您访问组件注册,以便您可以提供您自己的任何EasyNetQ依赖关系的版本。 签名看起来像这样: IServiceRegister接口提供 阅读全文

posted @ 2018-03-25 22:52 *Hunter 阅读(344) 评论(0) 推荐(0) 编辑

导航

AmazingCounters.com