https://www.gravatar.com/avatar/925f106f8657f9f31645440a0a538227?s=240&d=mp

Elasticsearch8.0安装及使用ik分词器

es安装esver=8.0.0 # 设置系统内存 sudo sysctl -w vm.max_map_count=262144 # docker pull elasticsearch:$esver docker run --name es --net elastic -p 9200:9200 -p 9300:9300 -it docker.elastic.co/elasticsearch/elasticsearch:8.0.0 es就启动了 访问https://ip:9200就能看到,

Npm和yarn换源

yarn// 查询源 yarn config get registry // 更换国内源 yarn config set registry https://registry.npm.taobao.org/ // 恢复官方源 yarn config set registry https://registry.yarnpkg.com // 删除注册表 yarn config delete registry npm 注意 npm 更换国内镜像源之后,将无法再使用 npm search 命令,需要恢复为

Hugo安装与使用

市面上有很多博客的生成框架,hugo, wordpress, hexo 我选择hugo有以下几点 我是gopher hugo生成网站快 配置简单 官方网站https://gohu

力扣刷题

//459. 重复的子字符串 func repeatedSubstringPattern(s string) bool { l := len(s) for i := 1; i <= l/2; i++ { if l%i == 0 { subs := s[:i] t := true for k := 0; k < l/i; k++ { if s[k*i:k*i+i] != subs { t = false break } } if t { return true } } } return false } //1447. 最简