-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
38 lines (38 loc) · 19.9 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<!doctype html><html lang=zh-cn><head><meta charset=utf-8><meta http-equiv=x-ua-compatible content="IE=edge,chrome=1"><title>tureo</title><meta name=renderer content="webkit"><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1"><meta http-equiv=cache-control content="no-transform"><meta http-equiv=cache-control content="no-siteapp"><meta name=theme-color content="#f8f5ec"><meta name=msapplication-navbutton-color content="#f8f5ec"><meta name=apple-mobile-web-app-capable content="yes"><meta name=apple-mobile-web-app-status-bar-style content="#f8f5ec"><meta name=author content="tureo"><meta name=keywords content="Hugo,theme,even"><meta name=generator content="Hugo 0.62.2 with theme even"><link rel=canonical href=http://localhost:1313/><link href=http://localhost:1313/index.xml rel=alternate type=application/rss+xml title=tureo><link href=http://localhost:1313/index.xml rel=feed type=application/rss+xml title=tureo><link rel=apple-touch-icon sizes=180x180 href=/apple-touch-icon.png><link rel=icon type=image/png sizes=32x32 href=/favicon-32x32.png><link rel=icon type=image/png sizes=16x16 href=/favicon-16x16.png><link rel=manifest href=/manifest.json><link rel=mask-icon href=/safari-pinned-tab.svg color=#5bbad5><link href=/sass/main.min.a2095472a2a8d7ddda1334cf60051cbe40ed55f2467554bb6aa4c17c9bcd27a4.css rel=stylesheet><link rel=stylesheet href=https://cdn.jsdelivr.net/npm/@fancyapps/[email protected]/dist/jquery.fancybox.min.css integrity="sha256-7TyXnr2YU040zfSP+rEcz29ggW4j56/ujTPwjMzyqFY=" crossorigin=anonymous><meta property="og:title" content="tureo"><meta property="og:description" content><meta property="og:type" content="website"><meta property="og:url" content="http://localhost:1313/"><meta property="og:updated_time" content="2022-04-02T14:12:41+08:00"><meta itemprop=name content="tureo"><meta itemprop=description content><meta name=twitter:card content="summary"><meta name=twitter:title content="tureo"><meta name=twitter:description content><!--[if lte IE 9]><script src=https://cdnjs.cloudflare.com/ajax/libs/classlist/1.1.20170427/classList.min.js></script><![endif]--><!--[if lt IE 9]><script src=https://cdn.jsdelivr.net/npm/[email protected]/dist/html5shiv.min.js></script><script src=https://cdn.jsdelivr.net/npm/[email protected]/dest/respond.min.js></script><![endif]--></head><body><div id=mobile-navbar class=mobile-navbar><div class=mobile-header-logo><a href=/ class=logo>tureo</a></div><div class=mobile-navbar-icon><span></span><span></span><span></span></div></div><nav id=mobile-menu class="mobile-menu slideout-menu"><ul class=mobile-menu-list><a href=/><li class=mobile-menu-item>首页</li></a><a href=/post/><li class=mobile-menu-item>归档</li></a><a href=/tags/><li class=mobile-menu-item>标签</li></a><a href=/categories/><li class=mobile-menu-item>分类</li></a></ul></nav><div class=container id=mobile-panel><header id=header class=header><div class=logo-wrapper><a href=/ class=logo>tureo</a></div><nav class=site-navbar><ul id=menu class=menu><li class=menu-item><a class=menu-item-link href=/>首页</a></li><li class=menu-item><a class=menu-item-link href=/post/>归档</a></li><li class=menu-item><a class=menu-item-link href=/tags/>标签</a></li><li class=menu-item><a class=menu-item-link href=/categories/>分类</a></li></ul></nav></header><main id=main class=main><div class=content-wrapper><div id=content class=content><section id=posts class=posts><article class=post><header class=post-header><h1 class=post-title><a class=post-link href=/post/mongodb%E8%81%94%E8%A1%A8%E6%9F%A5%E8%AF%A2%E5%88%86%E7%BB%84%E5%8F%96%E7%AC%AC%E4%B8%80%E6%9D%A1%E6%95%B0%E6%8D%AE/>MongoDB联表查询分组取第一条数据</a></h1><div class=post-meta><span class=post-time>2022-04-02</span><div class=post-category><a href=/categories/mongodb/>MongoDB</a></div><span class=more-meta>约 943 字</span>
<span class=more-meta>预计阅读 2 分钟</span></div></header><div class=post-content><div class=post-summary>说明 MongoDB多表关联获取每个分组的第一条数据。 示例 原始数据 test_party 1 2 3 4 5 6 7 8 9 10 11 12 13 // 1 { "_id": ObjectId("623c0d285bdb127d373739d2"), "createAt": ISODate("2022-03-24T06:18:16.812Z"), "updateAt": ISODate("2022-03-24T06:18:16.812Z") } // 2 { "_id": ObjectId("6243b3f9ef71cbde1617cbfe"), "createAt": ISODate("2022-03-23T09:05:03.304Z"), "updateAt": ISODate("2022-03-23T09:05:03.304Z") } test_party_user 1 2 3</div><div class=read-more><a href=/post/mongodb%E8%81%94%E8%A1%A8%E6%9F%A5%E8%AF%A2%E5%88%86%E7%BB%84%E5%8F%96%E7%AC%AC%E4%B8%80%E6%9D%A1%E6%95%B0%E6%8D%AE/ class=read-more-link>阅读更多</a></div></div></article><article class=post><header class=post-header><h1 class=post-title><a class=post-link href=/post/%E4%BD%BF%E7%94%A8postman%E7%9A%84runner%E6%89%B9%E9%87%8F%E8%87%AA%E5%8A%A8%E8%B0%83%E7%94%A8%E6%8E%A5%E5%8F%A3/>使用postman的runner批量自动调用接口</a></h1><div class=post-meta><span class=post-time>2022-03-31</span><div class=post-category><a href=/categories/postman/>postman</a>
<a href=/categories/%E6%B5%8B%E8%AF%95/>测试</a>
<a href=/categories/%E6%8E%A5%E5%8F%A3/>接口</a></div><span class=more-meta>约 603 字</span>
<span class=more-meta>预计阅读 2 分钟</span></div></header><div class=post-content><div class=post-summary>说明 有时候需要批量调用接口进行测试或者造数据,可以使用postman的runner进行。 示例 以下用http post + json的方式演示批量调用注册</div><div class=read-more><a href=/post/%E4%BD%BF%E7%94%A8postman%E7%9A%84runner%E6%89%B9%E9%87%8F%E8%87%AA%E5%8A%A8%E8%B0%83%E7%94%A8%E6%8E%A5%E5%8F%A3/ class=read-more-link>阅读更多</a></div></div></article><article class=post><header class=post-header><h1 class=post-title><a class=post-link href=/post/go%E4%B8%AD%E6%8C%89map%E4%B8%AD%E7%9A%84%E6%9F%90%E4%B8%AA%E5%AD%97%E6%AE%B5%E5%AF%B9map%E6%95%B0%E7%BB%84%E6%8E%92%E5%BA%8F/>Go中按Map中的某个字段对Map数组排序</a></h1><div class=post-meta><span class=post-time>2022-03-31</span><div class=post-category><a href=/categories/go/>go</a>
<a href=/categories/map/>map</a>
<a href=/categories/slice/>slice</a>
<a href=/categories/sort/>sort</a></div><span class=more-meta>约 290 字</span>
<span class=more-meta>预计阅读 1 分钟</span></div></header><div class=post-content><div class=post-summary>说明 有时候需要按Map中的某个字段对Map数组排序,使用标准包的sort.Sort即可以自定义排序规则,需要实现相关的Len、Swap、Le</div><div class=read-more><a href=/post/go%E4%B8%AD%E6%8C%89map%E4%B8%AD%E7%9A%84%E6%9F%90%E4%B8%AA%E5%AD%97%E6%AE%B5%E5%AF%B9map%E6%95%B0%E7%BB%84%E6%8E%92%E5%BA%8F/ class=read-more-link>阅读更多</a></div></div></article><article class=post><header class=post-header><h1 class=post-title><a class=post-link href=/post/go%E4%BD%BF%E7%94%A8aws-sdk-go%E6%93%8D%E4%BD%9Camazon-s3%E5%AF%B9%E8%B1%A1%E5%AD%98%E5%82%A8/>go使用aws-sdk-go操作Amazon S3对象存储</a></h1><div class=post-meta><span class=post-time>2022-01-12</span><div class=post-category><a href=/categories/go/>go</a>
<a href=/categories/s3/>s3</a>
<a href=/categories/aws/>aws</a></div><span class=more-meta>约 1415 字</span>
<span class=more-meta>预计阅读 3 分钟</span></div></header><div class=post-content><div class=post-summary>说明 使用aws-sdk-go操作Amazon S3对象存储,包括文件上传(分段)、文件下载、查看文件列表、查看bucket列表、获取预签名ur</div><div class=read-more><a href=/post/go%E4%BD%BF%E7%94%A8aws-sdk-go%E6%93%8D%E4%BD%9Camazon-s3%E5%AF%B9%E8%B1%A1%E5%AD%98%E5%82%A8/ class=read-more-link>阅读更多</a></div></div></article><article class=post><header class=post-header><h1 class=post-title><a class=post-link href=/post/windows%E6%89%B9%E5%A4%84%E7%90%86%E8%84%9A%E6%9C%ACbat%E8%BF%9E%E6%8E%A5%E5%88%B0%E8%BF%9C%E7%A8%8Blinux%E6%9C%8D%E5%8A%A1%E5%99%A8%E8%87%AA%E5%8A%A8%E9%83%A8%E7%BD%B2%E5%BA%94%E7%94%A8/>Windows批处理脚本bat连接到远程Linux服务器自动部署应用</a></h1><div class=post-meta><span class=post-time>2021-11-24</span><div class=post-category><a href=/categories/windows/>Windows</a>
<a href=/categories/%E8%87%AA%E5%8A%A8%E9%83%A8%E7%BD%B2/>自动部署</a>
<a href=/categories/bat/>bat</a>
<a href=/categories/shell/>Shell</a></div><span class=more-meta>约 714 字</span>
<span class=more-meta>预计阅读 2 分钟</span></div></header><div class=post-content><div class=post-summary>需求背景 有时候需要把本地Windows修改的文件自动部署到远程Linux服务器,可使用Windows批处理脚本bat来实现连接远程服务器并自</div><div class=read-more><a href=/post/windows%E6%89%B9%E5%A4%84%E7%90%86%E8%84%9A%E6%9C%ACbat%E8%BF%9E%E6%8E%A5%E5%88%B0%E8%BF%9C%E7%A8%8Blinux%E6%9C%8D%E5%8A%A1%E5%99%A8%E8%87%AA%E5%8A%A8%E9%83%A8%E7%BD%B2%E5%BA%94%E7%94%A8/ class=read-more-link>阅读更多</a></div></div></article><article class=post><header class=post-header><h1 class=post-title><a class=post-link href=/post/mysql-order-by-field%E6%8C%87%E5%AE%9A%E6%8E%92%E5%BA%8F%E8%A7%84%E5%88%99/>Mysql Order by Field指定排序规则</a></h1><div class=post-meta><span class=post-time>2021-11-23</span><div class=post-category><a href=/categories/mysql/>mysql</a></div><span class=more-meta>约 338 字</span>
<span class=more-meta>预计阅读 1 分钟</span></div></header><div class=post-content><div class=post-summary>需求背景 有时候业务要求我们从数据库查询数据需要根据某些字段排序,但不是按简单的升序或降序排列,而是有如下的特殊要求: 先按审核状态自定义升序排</div><div class=read-more><a href=/post/mysql-order-by-field%E6%8C%87%E5%AE%9A%E6%8E%92%E5%BA%8F%E8%A7%84%E5%88%99/ class=read-more-link>阅读更多</a></div></div></article><article class=post><header class=post-header><h1 class=post-title><a class=post-link href=/post/mysql-insert-ignore-into%E6%8A%8A%E6%95%B0%E6%8D%AE%E6%8F%92%E5%85%A5%E6%95%B0%E6%8D%AE%E5%BA%93/>Mysql Insert Ignore Into把数据插入数据库</a></h1><div class=post-meta><span class=post-time>2021-11-22</span><div class=post-category><a href=/categories/mysql/>mysql</a>
<a href=/categories/go/>go</a>
<a href=/categories/gin/>gin</a>
<a href=/categories/gorm/>gorm</a>
<a href=/categories/toml/>toml</a></div><span class=more-meta>约 1762 字</span>
<span class=more-meta>预计阅读 4 分钟</span></div></header><div class=post-content><div class=post-summary>问题背景 最近在管控平台中的一个项目需要维护一个用户名列表,但管控平台不提供获取所有用户名的接口,这个用户名只能从管控平台前端页面调用后端接口</div><div class=read-more><a href=/post/mysql-insert-ignore-into%E6%8A%8A%E6%95%B0%E6%8D%AE%E6%8F%92%E5%85%A5%E6%95%B0%E6%8D%AE%E5%BA%93/ class=read-more-link>阅读更多</a></div></div></article><article class=post><header class=post-header><h1 class=post-title><a class=post-link href=/post/%E5%86%85%E7%BD%91%E9%80%9A%E8%BF%87%E5%AE%89%E8%A3%85squid%E4%BB%A3%E7%90%86%E8%AE%BF%E9%97%AE%E5%85%AC%E7%BD%91/>内网通过安装squid代理访问公网</a></h1><div class=post-meta><span class=post-time>2021-10-26</span><div class=post-category><a href=/categories/squid/>squid</a>
<a href=/categories/docker/>docker</a></div><span class=more-meta>约 283 字</span>
<span class=more-meta>预计阅读 1 分钟</span></div></header><div class=post-content><div class=post-summary>由于内网机器不能直接访问公网,需要一台机器搭建代理服务器,其他机器通过代理服务器访问公网,这里基于docker安装squid代理实现 创建相关</div><div class=read-more><a href=/post/%E5%86%85%E7%BD%91%E9%80%9A%E8%BF%87%E5%AE%89%E8%A3%85squid%E4%BB%A3%E7%90%86%E8%AE%BF%E9%97%AE%E5%85%AC%E7%BD%91/ class=read-more-link>阅读更多</a></div></div></article><article class=post><header class=post-header><h1 class=post-title><a class=post-link href=/post/%E9%94%99%E8%AF%AF%E5%90%AF%E5%8A%A8jenkins.war%E5%8C%85%E4%BC%9A%E5%88%A0%E9%99%A4%E5%BD%93%E5%89%8D%E7%9B%AE%E5%BD%95%E4%B8%8B%E6%89%80%E6%9C%89%E6%96%87%E4%BB%B6/>错误启动jenkins.war包会删除当前目录下所有文件</a></h1><div class=post-meta><span class=post-time>2021-10-26</span><div class=post-category><a href=/categories/jenkins/>jenkins</a></div><span class=more-meta>约 177 字</span>
<span class=more-meta>预计阅读 1 分钟</span></div></header><div class=post-content><div class=post-summary>正确启动 正确的命令:java -jar jenkins.war --httpPort=8080 正常启动: 文件还在: 错误启动 错误的命令:java -jar jenkins.war --httpPort=8080 . (错误的命令后面多了个空格和.) 错误的命令启动je</div><div class=read-more><a href=/post/%E9%94%99%E8%AF%AF%E5%90%AF%E5%8A%A8jenkins.war%E5%8C%85%E4%BC%9A%E5%88%A0%E9%99%A4%E5%BD%93%E5%89%8D%E7%9B%AE%E5%BD%95%E4%B8%8B%E6%89%80%E6%9C%89%E6%96%87%E4%BB%B6/ class=read-more-link>阅读更多</a></div></div></article><article class=post><header class=post-header><h1 class=post-title><a class=post-link href=/post/redis%E4%B8%8D%E8%83%BD%E8%BF%9C%E7%A8%8B%E8%AE%BF%E9%97%AE/>Redis不能远程访问</a></h1><div class=post-meta><span class=post-time>2021-10-26</span><div class=post-category><a href=/categories/redis/>redis</a></div><span class=more-meta>约 453 字</span>
<span class=more-meta>预计阅读 1 分钟</span></div></header><div class=post-content><div class=post-summary>问题 远程访问redis执行命令报错如下: 1 2 3 100.128.100.100:6379> flushall (error) DENIED Redis is running in protected mode because protected mode is enabled, no bind address was specified, no authentication password is requested to clients. In this mode connections are only accepted from the loopback interface. If you want to connect from external computers to</div><div class=read-more><a href=/post/redis%E4%B8%8D%E8%83%BD%E8%BF%9C%E7%A8%8B%E8%AE%BF%E9%97%AE/ class=read-more-link>阅读更多</a></div></div></article><article class=post><header class=post-header><h1 class=post-title><a class=post-link href=/post/github%E6%81%A2%E5%A4%8D%E8%A2%AB%E8%AF%AF%E5%88%A0%E9%99%A4%E7%9A%84%E4%BB%93%E5%BA%93/>Github恢复被误删除的仓库</a></h1><div class=post-meta><span class=post-time>2021-10-26</span><div class=post-category><a href=/categories/github/>github</a></div><span class=more-meta>约 212 字</span>
<span class=more-meta>预计阅读 1 分钟</span></div></header><div class=post-content><div class=post-summary>有时候不小心误删除github仓库,github官方提供一种恢复的方法,这里以恢复误删除的file仓库示例,操作如下: 登录GitHub,点击</div><div class=read-more><a href=/post/github%E6%81%A2%E5%A4%8D%E8%A2%AB%E8%AF%AF%E5%88%A0%E9%99%A4%E7%9A%84%E4%BB%93%E5%BA%93/ class=read-more-link>阅读更多</a></div></div></article><article class=post><header class=post-header><h1 class=post-title><a class=post-link href=/post/mysql%E5%AF%BC%E5%85%A5%E5%A4%9A%E4%B8%AAsql%E6%96%87%E4%BB%B6/>Mysql导入多个sql文件</a></h1><div class=post-meta><span class=post-time>2021-10-21</span><div class=post-category><a href=/categories/mysql/>mysql</a></div><span class=more-meta>约 607 字</span>
<span class=more-meta>预计阅读 2 分钟</span></div></header><div class=post-content><div class=post-summary>需求背景 因mysql数据库表初始化或迁移需要导入一个数据库的多个sql文件,而mysql没有批量导入多个sql文件的命令,一个一个的执行导入</div><div class=read-more><a href=/post/mysql%E5%AF%BC%E5%85%A5%E5%A4%9A%E4%B8%AAsql%E6%96%87%E4%BB%B6/ class=read-more-link>阅读更多</a></div></div></article><article class=post><header class=post-header><h1 class=post-title><a class=post-link href=/post/go%E6%8E%A5%E5%8F%A3%E6%96%87%E6%A1%A3swag-init%E5%87%BA%E9%94%99/>go接口文档swag init出错</a></h1><div class=post-meta><span class=post-time>2021-10-21</span><div class=post-category><a href=/categories/go/>go</a>
<a href=/categories/swagger/>swagger</a></div><span class=more-meta>约 284 字</span>
<span class=more-meta>预计阅读 1 分钟</span></div></header><div class=post-content><div class=post-summary>需求 swagger文档注释引用到自定义类型或外部的go结构体 存在问题 执行swag init后出现错误:ParseComment error in file create.go :cannot find type definition:</div><div class=read-more><a href=/post/go%E6%8E%A5%E5%8F%A3%E6%96%87%E6%A1%A3swag-init%E5%87%BA%E9%94%99/ class=read-more-link>阅读更多</a></div></div></article><article class=post><header class=post-header><h1 class=post-title><a class=post-link href=/post/go%E5%9F%BA%E5%87%86%E6%B5%8B%E8%AF%95windows%E5%B9%B3%E5%8F%B0%E6%89%A7%E8%A1%8C%E5%91%BD%E4%BB%A4/>Go基准测试windows平台执行命令</a></h1><div class=post-meta><span class=post-time>2021-10-21</span><div class=post-category><a href=/categories/go/>go</a></div><span class=more-meta>约 105 字</span>
<span class=more-meta>预计阅读 1 分钟</span></div></header><div class=post-content><div class=post-summary>需求 在windows机器上进行go程序的基准测试 存在问题 linux正常的命令go test -bench=.在windows上执行结果异常 问题原因 wi</div><div class=read-more><a href=/post/go%E5%9F%BA%E5%87%86%E6%B5%8B%E8%AF%95windows%E5%B9%B3%E5%8F%B0%E6%89%A7%E8%A1%8C%E5%91%BD%E4%BB%A4/ class=read-more-link>阅读更多</a></div></div></article><article class=post><header class=post-header><h1 class=post-title><a class=post-link href=/post/git%E6%8F%90%E4%BA%A4%E7%A9%BA%E7%9B%AE%E5%BD%95/>Git提交空目录</a></h1><div class=post-meta><span class=post-time>2021-10-21</span><div class=post-category><a href=/categories/git/>git</a></div><span class=more-meta>约 145 字</span>
<span class=more-meta>预计阅读 1 分钟</span></div></header><div class=post-content><div class=post-summary>需求 需要提交一个项目目录结构到远程git仓库上 存在问题 空目录不能commit和push 问题原因 git默认不能提交空目录 解决方法 在每个空目录下</div><div class=read-more><a href=/post/git%E6%8F%90%E4%BA%A4%E7%A9%BA%E7%9B%AE%E5%BD%95/ class=read-more-link>阅读更多</a></div></div></article></section><nav class=pagination></nav></div></div></main><footer id=footer class=footer><div class=social-links><a href=mailto:[email protected] class="iconfont icon-email" title=email></a><a href=https://github.com/tureo class="iconfont icon-github" title=github></a><a href=http://localhost:1313/index.xml type=application/rss+xml class="iconfont icon-rss" title=rss></a></div><div class=copyright><span class=power-by>由 <a class=hexo-link href=https://gohugo.io>Hugo</a> 强力驱动</span>
<span class=division>|</span>
<span class=theme-info>主题 -
<a class=theme-link href=https://github.com/olOwOlo/hugo-theme-even>Even</a></span>
<span class=copyright-year>©
2021 -
2022<span class=heart><i class="iconfont icon-heart"></i></span><span>tureo</span></span></div></footer><div class=back-to-top id=back-to-top><i class="iconfont icon-up"></i></div></div><script src=https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin=anonymous></script><script src=https://cdn.jsdelivr.net/npm/[email protected]/dist/slideout.min.js integrity="sha256-t+zJ/g8/KXIJMjSVQdnibt4dlaDxc9zXr/9oNPeWqdg=" crossorigin=anonymous></script><script src=https://cdn.jsdelivr.net/npm/@fancyapps/[email protected]/dist/jquery.fancybox.min.js integrity="sha256-XVLffZaxoWfGUEbdzuLi7pwaUJv1cecsQJQqGLe7axY=" crossorigin=anonymous></script><script src=https://cdn.jsdelivr.net/npm/[email protected]/dist/timeago.min.js integrity="sha256-jwCP0NAdCBloaIWTWHmW4i3snUNMHUNO+jr9rYd2iOI=" crossorigin=anonymous></script><script src=https://cdn.jsdelivr.net/npm/[email protected]/dist/timeago.locales.min.js integrity="sha256-ZwofwC1Lf/faQCzN7nZtfijVV6hSwxjQMwXL4gn9qU8=" crossorigin=anonymous></script><script>var languageCode="en".replace(/-/g,'_').replace(/_(.*)/,function($0,$1){return $0.replace($1,$1.toUpperCase());});timeago().render(document.querySelectorAll('.timeago'),languageCode);timeago.cancel();</script><script type=text/javascript src=/js/main.min.c12618f9a600c40bd024996677e951e64d3487006775aeb22e200c990006c5c7.js></script></body></html>