2025年11月5日
摘要: 原始为 可以修改为 或者下面的方式 修改绑定为使用通配符 * 而不是具体 IP: <bindings> <!-- 使用 * 而不是具体 IP --> <binding protocol="http" bindingInformation="*:19908:*" /> <binding protoco 阅读全文
posted @ 2025-11-05 09:46 侗家小蚁哥 阅读(5) 评论(0) 推荐(0)
  2025年11月1日
摘要: # 如果没有健康检查,启动顺序可能是: 1. MySQL容器状态: running ✅ 2. API应用启动并立即连接MySQL ❌ 3. 但MySQL内部可能还在初始化,连接失败 4. 应用报错: "MySQL connection refused" 结果: 应用启动失败,需要手动重启 # 使用健 阅读全文
posted @ 2025-11-01 08:49 侗家小蚁哥 阅读(6) 评论(0) 推荐(0)
  2025年10月26日
摘要: #!/bin/bashset -e echo "🔧 Docker 服务崩溃修复..." # 停止所有 Docker 相关服务echo "🛑 停止 Docker 服务..."sudo systemctl stop docker.socket 2>/dev/null || truesudo syst 阅读全文
posted @ 2025-10-26 15:40 侗家小蚁哥 阅读(11) 评论(0) 推荐(0)
摘要: 为什么要进行镜像的存储,因为网上的远程镜像经常连接不上,对于服务器来说,需要及时恢复的情况下.下载自己的OSS镜像是最快最安全的模式.同时最好的是拉取官方镜像保存到OSS.自己网上下载的镜像有些是不能用的(亲自体验过).使用 OSS 直接存储镜像文件 #!/bin/bash# backup-to-o 阅读全文
posted @ 2025-10-26 14:39 侗家小蚁哥 阅读(2) 评论(0) 推荐(0)
  2025年10月22日
摘要: 系统安全检查 # 1. 立即更新系统sudo apt update && sudo apt upgrade # Ubuntu/Debiansudo yum update # CentOS/RHEL # 2. 修改所有密码sudo passwd rootsudo passwd username # 3 阅读全文
posted @ 2025-10-22 08:37 侗家小蚁哥 阅读(18) 评论(0) 推荐(0)
  2025年7月17日
摘要: Unhandled exception. System.InvalidOperationException: Unable to configure HTTPS endpoint. No server certificate was specified, and the default develo 阅读全文
posted @ 2025-07-17 14:20 侗家小蚁哥 阅读(48) 评论(0) 推荐(0)
  2024年11月1日
摘要: 使用PostMan测试netcore接口。如果接口使用FromForm来接受数据。则PostMan的数据组合需要如下方式: 注意看JSON数据。。 提交时用的是:multipart/form-data; 数据装载是用的:[0],[1]来标识数组对象中的字段 阅读全文
posted @ 2024-11-01 15:18 侗家小蚁哥 阅读(13) 评论(0) 推荐(0)
  2024年10月24日
摘要: //js //富文本反转义html function escape2Html(str){ var arrEntities = { 'lt': '<', 'gt': '>', 'nbsp': ' ', 'amp': '&', 'quot': '"' }; return str.replace(/&(l 阅读全文
posted @ 2024-10-24 11:58 侗家小蚁哥 阅读(102) 评论(0) 推荐(0)
  2024年9月13日
摘要: Bitmap => byte[] Bitmap b = new Bitmap( "test.bmp "); MemoryStream ms = new MemoryStream(); b.Save(ms,System.Drawing.Imaging.ImageFormat.Bmp); byte[] 阅读全文
posted @ 2024-09-13 15:04 侗家小蚁哥 阅读(79) 评论(0) 推荐(0)
  2024年8月12日
摘要: C#中的日期处理函数 //2007年4月24日 this.TextBox6.Text = System.DateTime.Now.ToString("D"); //2007-4-24 this.TextBox7.Text = System.DateTime.Now.ToString("d"); // 阅读全文
posted @ 2024-08-12 11:21 侗家小蚁哥 阅读(37) 评论(0) 推荐(0)