原创 Jenkins服務器 自動化部署.net服務端windows

1.安裝Jenkins/Visual studio/Open SSH(win10 自帶) Jenkins/Visual studio 無需多說 https://github.com/PowerShell/Win32-OpenSSH/rel

原创 Jenkins .NetCore 自動編譯部署windows

1.下載Jenkins/.NetCore SDK,並安裝 參考:https://blog.csdn.net/qq_18145031/article/details/88533766 2.創建Jenkins構建 項目        構建腳

原创 Jenkins部署 .NetCore到服務器

1. .NetCore項目支持windows 服務 參考:https://docs.microsoft.com/zh-cn/aspnet/core/host-and-deploy/windows-service?view=aspnetco

原创 C# 判斷文件流編碼格式

參考:https://www.cnblogs.com/cyq1162/p/9183424.html 參考:https://cloud.tencent.com/developer/article/1343240 參考:https://clo

原创 Redis Cluster Endpoint serving hashslot is not reachable at this point of time.

Redis報錯: StackExchange.Redis.RedisServerException: Endpoint 127.0.0.1:7200 serving hashslot 12448 is not reachable at

原创 IdentityServer4 結合AspNet.Identity&數據庫配置Client數據

//ConfigureServices(IServiceCollection services) 設置             var DbContextConnStr = Configuration.GetConnectionStrin

原创 C# EntityFrameWork 自動更新緩存內容

using AirOut.Web.Extensions;using AirOut.Web.Models;using System;using Syst

原创 Win 10 安裝 Linux 子系統(Windows Subsystem for Linux)& 安裝 Redis 5.0.5

1:MicroSoft Store 搜索 ubuntu,選擇應用程序,Ubuntu18.04 點擊安裝 2:打開Ubuntu18.04,初始化,輸入用戶名和密碼 3:替換源   1)  備份:sudo cp /etc/apt/source

原创 window WSL 和 Ubuntu 18.04 互相拷貝文件

WSL位置: C:\Users\{windows帳戶}\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu18.04onWindows_79rhkp1fndgsc\ WSL訪問windo

原创 .Net Core 2.2 解密 Cookie Authentication-Token

參考:https://stackoverflow.com/questions/42842511/how-to-manually-decrypt-an-asp-net-core-authentication-cookie/42857830#

原创 C# MVC5 使用 node.js + WebPack 打包JS

參考:https://www.slightedgecoder.com/2017/05/22/setting-es6-environment-asp-net-mvc-5/ 創建 node 初始文件 package.json npm init

原创 IIS 多進程+負載均衡,配置

1:設置各服務器 MachineKey一致 2:設置各服務器,網站ID必須一致 ID不一致,會造成登錄失敗,Session失效等問題(最大工作進程數爲1時,不受影響) 3:設置各服務器,網站目錄,網站名稱,網站應用程序池名稱,最好一致 4

原创 C# web.config 加密

參考:https://blog.darkthread.net/blog/mechinekey-hack-and-protection/ 參考:https://www.cnblogs.com/txwsh1/archive/2007/05/1

原创 C# MVC +Redis+RedisSessionProvider +Owin 實現真正的 分佈式

1.首先 Nuget 安裝  Newtonsoft.Json RedisSessionProvider StackExchange.Redis Owin 2.WebConfig配置 <!-- Redis鏈接地址(如果開啓異步發送TM/In

原创 Element-UI el-table-column show-overflow-tooltip無效 tooltip無效

 RequireJs 按需加載 Element-UI+Vue 需要注意 Element-UI 源碼裏會require('vue'), 如果RequireJs-config配置了paths: {vue:'vue.min'},path裏的vu