摘要: 安装命令 sudo apt install redis-server 安装后检查 Redis 服务状态 sudo systemctl status redis-server Redis 的主要配置文件位于 /etc/redis/redis.conf 注释掉 Bind 127.0.01::1 来允许所 阅读全文
posted @ 2022-12-01 14:46 顾小凡 阅读(164) 评论(0) 推荐(0)
摘要: 首先安装 Erlang 环境 apt-get install erlang 检查安装是否成功 erl 搜索apt下是否有 rabbitmq-server apt-cache search rabbitmq-server 安装 apt-get install rabbitmq-server 查看运行状 阅读全文
posted @ 2022-11-30 22:18 顾小凡 阅读(185) 评论(0) 推荐(0)
摘要: 原文地址 : https://www.pluralsight.com/guides/task-taskcompletion-source-csharp 定义: 可以将任何异步操作转换为Task 用例: Asp.Net Core 7 中的 IHost 接口的扩展方法 WaitForShutdownAs 阅读全文
posted @ 2022-11-18 17:27 顾小凡 阅读(118) 评论(0) 推荐(0)
摘要: 位于 Microsoft.Extensions.DependencyInjection.Abstractions.dll 官方定义: 描述一种服务,包括该服务的类型,实现和生存周期 // 生命周期 public ServiceLifetime Lifetime { get; } // 服务类型 pu 阅读全文
posted @ 2022-11-18 17:05 顾小凡 阅读(142) 评论(0) 推荐(0)
摘要: location / { try_files $uri $uri/ @router; index index.html; } location @router { rewrite ^.*$ /index.html last; } 阅读全文
posted @ 2022-07-02 17:04 顾小凡 阅读(21) 评论(0) 推荐(0)
摘要: 1 public class Sys_Menu : IEntity 2 { 3 4 /// <summary> 5 /// Id 6 /// </summary> 7 [Key] 8 public int Id { get; set; } 9 10 /// <summary> 11 /// Path 阅读全文
posted @ 2022-05-25 16:37 顾小凡 阅读(150) 评论(0) 推荐(0)
摘要: let systemInfo = uni.getSystemInfoSync() // px转换到rpx的比例 let pxToRpxScale = 750 / systemInfo.windowWidth; // 状态栏的高度 let ktxStatusHeight = systemInfo.st 阅读全文
posted @ 2021-11-02 09:58 顾小凡 阅读(2592) 评论(0) 推荐(0)
摘要: const appid = "wxcf05d4b9dd7faaaa" const redirect_uri = encodeURI("http://www.aaaa.com/wechat?Isweixin=true") window.location.href = "https://open.wei 阅读全文
posted @ 2021-05-31 10:07 顾小凡 阅读(430) 评论(0) 推荐(0)
摘要: 1.引入微信js http://res.wx.qq.com/connect/zh_CN/htmledition/js/wxLogin.js 2.添加dom <div class="code"> <div id="login_container"></div> </div> 3.初始化 var obj 阅读全文
posted @ 2021-05-31 10:04 顾小凡 阅读(386) 评论(0) 推荐(0)
摘要: 在项目的csproj文件中加入以下代码 替换想要加入的框架 <PropertyGroup> <TargetFramework>net5.0</TargetFramework> <ApplicationIcon /> <OutputType>Library</OutputType> <StartupO 阅读全文
posted @ 2021-05-31 00:11 顾小凡 阅读(481) 评论(0) 推荐(0)