摘要: 1 使用示例地址: https://github.com/kevinsingapore/Xtrabackup 阅读全文
posted @ 2021-03-01 13:21 kevin_coding 阅读(68) 评论(0) 推荐(0)
摘要: 1 golang版本 >= 1.13; 2 示例: go env -w GOPROXY="http://mirrors.aliyun.com/goproxy,direct" 阅读全文
posted @ 2021-05-25 23:01 kevin_coding 阅读(2134) 评论(0) 推荐(0)
摘要: 1 示例: #!/bin/sh DB_HOST= DB_PORT= DB_USER= DB_PASSWORD= DB_DATABASE= # IN 或者 NOT IN 是筛选条件 mysql -h${DB_HOST} -P${DB_PORT} -u${DB_USER} -p${DB_PASSWORD 阅读全文
posted @ 2021-03-16 16:41 kevin_coding 阅读(147) 评论(0) 推荐(0)
摘要: 1 示例: #!/bin/sh # export ETCDCTL_API=2 HOST=10.43.69.8 ENDPOINTS=http://$HOST:2379 # -w '\n' 表示curl的返回结果换行 curl -L $ENDPOINTS/version -w '\n' curl -L 阅读全文
posted @ 2021-03-11 11:23 kevin_coding 阅读(3321) 评论(0) 推荐(0)
摘要: 1 官网比对适配地址: https://mariadb.com/kb/en/mariadb-vs-mysql-compatibility/ 阅读全文
posted @ 2021-03-01 13:42 kevin_coding 阅读(332) 评论(0) 推荐(0)
摘要: #!/bin/sh text=`ps -ef | awk '{print$2}'` #echo $text for i in $text do echo $i echo "kevin" done [ 说明 ]: 1 $text的类型是数组; 阅读全文
posted @ 2021-02-08 10:34 kevin_coding 阅读(51) 评论(0) 推荐(0)
摘要: #!/bin/sh input="./main.go" while read line do echo $line done < $input 阅读全文
posted @ 2021-02-07 23:31 kevin_coding 阅读(29) 评论(0) 推荐(0)
摘要: package main import ( "fmt" "reflect" ) func main() { var student = []string{"kevin", "jane", "tom"} fmt.Println(student) fmt.Println(reflect.TypeOf(s 阅读全文
posted @ 2021-02-07 22:57 kevin_coding 阅读(466) 评论(0) 推荐(0)