windows 下运行 nginx
下载 nginx http://nginx-win.ecsds.eu/ 配置 nginx.conf 使用三方工具配置 windows 服务 , 这里使用 winsw.exe https://github.com/winsw/winsw 将 winsw.exe 重命名为 nginx-service.exe 创建配置文件 nginx-service.x…
|
197
|
|
100 字
|
2 分钟
windows mklink
# 命令 MKLINK [[/D] | [/H] | [/J]] Link Target /D 创建目录符号链接。默认为文件 符号链接。 /H 创建硬链接而非符号链接。 /J 创建目录联接。 Link 指定新的符号链接名称。 Target 指定新链接引用的路径 (相对或绝对)。 /J 链接目录,/J 好像简单一些,我一般用它 /D 链接目录,一般来…
|
284
|
|
20 字
|
1 分钟
postgres count 数组 与 json
-- count https://www.modb.pro/db/33446 -- 统计预估值 SELECT reltuples::bigint FROM pg_catalog.pg_class WHERE relname = 'tablename'; -- 要用 * 会有优化 SELECT COUNT(*) FROM tabl…
|
242
|
|
50 字
|
3 分钟
一些 .NET 新建项目模板库
https://github.com/devlead/Devlead.Console.Template > 项目说明:https://www.devlead.se/posts/2021/2021-01-15-my-preferred-console-stack https://github.com/nuitsjp/Wpf.Extensions…
|
324
|
|
4 字
|
几秒读完
调用扣子
#load "AppLib" #load "seqlog" // 使用了 Betalgo.OpenAI // 使用了 coze2openai 将coze调用转为 openai api 调用 async Task Main(string[] args) { var app = this.CreateApp(ar…
|
595
|
|
71 字
|
4 分钟
windows Android 子系统授权失败处理
开始 -> 运行 'wsa://com.android.settings', 搜索 usb 设置,重新 打开、关闭 开发人员模式或 usb 调试, 再次进行授权。
|
425
|
|
45 字
|
几秒读完
测试非公开方法
有空再整理 http://www.liangzhou.pro/posts/csharp_how_to_test_a_private_method/
|
228
|
|
12 字
|
几秒读完
seq 日志系统
# 设置 # 这里使用了 Microsoft.Extensions.Logging var data = new Dictionary<string, string?>(); data["Seq:ServerUrl"] = "http://xxxxx:xxx"; // api 地址 (注:与 ui…
|
243
|
|
53 字
|
2 分钟
使用 powershell 设置 linux 机器免密登录
> type ~\.ssh\id_rsa.pub | ssh root@10.168.10.144 "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"
|
412
|
|
1 字
|
几秒读完