上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 19 下一页
摘要: CFSSL是CloudFlare开源的一款PKI/TLS工具,CFSSL包含一个命令行工具和一个用于签名,验证并且捆绑TLS证书的HTTP API服务,使用Go语言编写. github: https://github.com/cloudflare/cfssl 下载地址: https://pkg.cf 阅读全文
posted @ 2022-02-14 17:13 醒日是归时 阅读(901) 评论(0) 推荐(0)
摘要: 在分布式微服务架构中,一个应用可能由一组职责单一化的服务组成。这时候就需要一个注册服务的机制,注册某个服务或者某个节点是可用的,还需要一个发现服务的机制来找到哪些服务或者哪些节点还在提供服务。 在实际应用中,通常还都需要一个配置文件告诉我们一些配置信息,比如数据连接的地址,redis 的地址等等。但 阅读全文
posted @ 2022-02-11 13:47 醒日是归时 阅读(2380) 评论(0) 推荐(0)
摘要: 从 API 网关核心功能点来看,两者均已覆盖: 功能 Apache APISIX Kong 动态上游 支持 支持 动态路由 支持 支持 健康检查和熔断器 支持 支持 动态SSL证书 支持 支持 七层和四层代理 支持 支持 分布式追踪 支持 支持 自定义插件 支持 支持 REST API 支持 支持 阅读全文
posted @ 2022-02-08 17:26 醒日是归时 阅读(2053) 评论(0) 推荐(0)
摘要: import ( "fmt" "os" "path/filepath" "path" ) files := "E:\\data\\test.txt" paths, fileName := filepath.Split(files) fmt.Println(paths, fileName) //获取路 阅读全文
posted @ 2022-01-27 15:53 醒日是归时 阅读(1941) 评论(0) 推荐(0)
摘要: //方法一 func readConfig1(path, filename, filetype string) interface{} { viper.AddConfigPath(path) viper.SetConfigFile(filename) viper.SetConfigType(file 阅读全文
posted @ 2022-01-27 14:32 醒日是归时 阅读(307) 评论(0) 推荐(0)
摘要: 错误问题 Vue:xhr.upload.addEventListener is not a function 这个问题是因为mockjs改动了axios里面XMLHttpRequest对象致使的 根据axios源码 l是一个XMLHttpRequest对象 mockJs把l变量从XMLHttpReq 阅读全文
posted @ 2022-01-21 16:25 醒日是归时 阅读(3184) 评论(1) 推荐(0)
摘要: #!/usr/bin/env python # -*- coding: utf8 -*-import pymysql, sqlparse from app import logger class MysqlDb: def __init__(self, db, connect_timeout=5): 阅读全文
posted @ 2021-12-11 22:26 醒日是归时 阅读(174) 评论(0) 推荐(0)
摘要: 一,准备工作 准备四台centos服务器,三台用于consul server 高可用集群,一台用于consul client作服务注册及健康检查。架构如下图所示 二,在四台服务器上安装consul 1,安装unzip 工具:yum install -y zip unzip 2,查看centos版本。 阅读全文
posted @ 2021-12-09 02:12 醒日是归时 阅读(511) 评论(0) 推荐(0)
摘要: golang 按行读取文件 file, err := os.Open("app-2019-06-01.log") if err != nil { log.Fatal(err) } defer file.Close() scanner := bufio.NewScanner(file) for sca 阅读全文
posted @ 2021-12-02 17:58 醒日是归时 阅读(47) 评论(0) 推荐(0)
摘要: //判断文件是否存在 存在返回 true 不存在返回false func checkFileIsExist(filename string) bool { var exist = true if _, err := os.Stat(filename); os.IsNotExist(err) { ex 阅读全文
posted @ 2021-12-02 17:46 醒日是归时 阅读(466) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 19 下一页