手机随时阅读
新人专享大礼包¥24
参考文档: https://golang-tech-stack.com/post/4989 本文内容纲要: 普通的get请求 package main import ( "io/ioutil" "fmt" "net/http" ) func main() { res,_ :=http.Get("ht
在建容器时 报如下错误: WARNING: IPv4 forwarding is disabled. Networking will not work 解决方法: 第一步:找到文件 :vim /usr/lib/sysctl.d/00-system.conf 添加代码:net.ipv4.ip_forw
国家中英文码表 { 'Afghanistan':'阿富汗', 'Singapore':'新加坡', 'Angola':'安哥拉', 'Albania':'阿尔巴尼亚', 'United Arab Emirates':'阿联酋', 'Argentina':'阿根廷', 'Armenia':'亚美尼亚'
效果: docker-compose version: "3" networks: gitea: external: false services: server: image: gitea/gitea:latest container_name: gitea environment: - USER
开启SMTP服务: QQ邮箱参考下面连接: QQ邮箱如何开通SMTP服务
视频课程: https://www.bilibili.com/video/BV1Ev411j7e5?p=3 工作区: 文件状态: 回退版本: 软合并:把仓库里的文件回退到暂存区 混合合并:回退到工作区,保留更改文件修改的内容 强行合并:回退到工作区,不保留文件修改的内容 合并分支 普通合并 变基合并
# ElasticSearch version "number": "7.14.1" # 获取健康值 GET _cat/health?v # 获取所有的信息 GET _cat/indices?v # mappings信息 # 创建test3索引 # mapping number_of_shards分
文档地址:https://golang-tech-stack.com/tutorial/pb学习视频:https://www.bilibili.com/video/BV1Y3411j7EM?p=10&spm_id_from=333.788.top_right_bar_window_history.content.click
目录一、go-zero简介及如何学go-zero1.go-zero官方文档2.go-zero微服务框架入门教程3.go-zero最佳实践4.学习资料二、go-zero环境搭建1.需要安装以下环境和依赖2.goctl安装3.其它依赖安装三、go-zero杀手锏goctl详细使用1.官方文档:2.开发准备工作
ruby和glang的md5和sha1加密对比 package main import ( "crypto/md5" "crypto/sha1" "fmt" "io" "io/ioutil" "log" "strings" ) func main() { testMd5OrSha2() } func
微服务从代码到k8s部署应有尽有系列全集 https://mp.weixin.qq.com/s/8U2h85YJHy3H3hzlBakPPw 实战项目地址:https://github.com/Mikaelemmmm/go-zero-looklook
1.下载编译好的包 https://sourceforge.net/projects/mingw-w64/files/mingw-w64/ 2.解压完之后,配置环境变量。将安装路径对应的bin目录添加到PATH环境变量中。 3.查看是否安装成功。gcc -v 参考文章: https://blog.c
文档地址: https://xuri.me/excelize/zh-hans/ package main import ( "fmt" "github.com/xuri/excelize/v2" ) func main() { readEecel() //writeEecel() //appendE
本文主要在于带着大家完成一个基本的 CRUD 工作,让大家熟悉 Fiber + MongoDB 构建 RESTful API,熟悉工作流程。同时了解相关库的使用。 本文的完整代码见:https://github.com/programmerug/fibermongo。 文档说明: https://m
文档说明: https://zhuanlan.zhihu.com/p/461604538 本地开发运行环境: https://github.com/nivin-studio/gonivinck 代码地址: https://github.com/nivin-studio/go-zero-mall
参考文档: https://go-zero.dev/cn/micro-service.html 视频地址: https://space.bilibili.com/387126464/channel/series 实践过程中,文档需要修改正的地方 修改目录文件: 创建userclient/user.g
官方文档: https://go-zero.dev/cn/monolithic-service.html 系统环境: linux debain 配置环境: 1. golang安装 2. go module配置 *`go env -w GO111MODULE="on"` *`go env -w GOP
Typora+PicGo+Gitee自动上传图片 视频教程: https://www.bilibili.com/video/BV1hT4y1f7Mf?from=search&seid=15465767227648594659&spm_id_from=333.337.0.0 参考文档: https:/
安装 gem install rufus-scheduler ruby #!/usr/bin/env ruby require 'rubygems' require 'rufus-scheduler' scheduler = Rufus::Scheduler.new scheduler.every
在IDEA中配置GitHub 安装GitHub插件 账号授权 方法一:点击Add Account... 添加账号 Settings->Version Control->GitHub 跳转到github上授权同意 出下面的提示表示成功 You have been successfully author
debian终端下默认编辑器为nano,比如crontab -e就会打开nano,这个编辑器用起来很不习惯,想修改为vim,当然,你的debian系统必须先安装vim.如果已经安装vim,请输入如下命令: sudo update-alternatives --config editor 有 4 个候
编写/root/test.sh脚本 该方法适用于调度周期能被60整除的情况 #!/bin/bash step=1 for (( i = 0; i < 60; i = (i+step) )); do date >> /root/result.txt sleep $step done exit 0 配置
参考文章 https://book.hliedu.com/guide/notes/vuepress.html
安装iptablesyum install iptables-services编写允许访问的策略vim /etc/sysconfig/iptables# sample configuration for iptables service# # # you can edit this manually or use system-config-firewall# # # please do not
目录查看健康状态查询当前es集群中所有的indices创建索引并配置:创建索引删除索引获取mapping创建mapping添加字段插入记录检索修改删除中文文档:https://www.elastic.co/guide/cn/elasticsearch/guide/current/getting-started.html查看健康状态curl -X GET 127.0.0.1:9200/_cat/he
安装redis 配置redis 配置sidekiq所依赖的redis位置,必须同时定义sidekiq的server和client config/initializers/sidekiq.rb # 这里的地址和端
后端变量 @namelist 前端解释 var result_json = <%= @namelist.to_json.html_safe %>
Ubuntu 20.04 安装和配置MySql5.7的详细教程 https://www.jb51.net/article/202399.htm
Copyright © 2005-2022 51CTO.COM 版权所有 京ICP证060544号