参考:https://www.jianshu.com/p/9c3439cc3bdb 坑1: 安装Oh my zsh 一直提示 443 ,联接不到服务器,安装失败。 解决办法:https://github.com/hawtim/blog/issues/10 用 switchHost 软件配 host ...
分类:
系统相关 时间:
2020-06-18 19:36:02
阅读次数:
172
刚开始下载完mysql后,登录mysql客户端,执行下面命令 变量默认的编码都是utf8: 现在我告诉你,你发的语句若包含中文字符会出现乱码,客户端和服务器使用的编码不一致! 下面的来介绍两个比较重要的变量 》 》 现在我们希望把这俩个变量的编码都改成gbk,且要一劳永逸,在my.ini配置文件添加 ...
分类:
数据库 时间:
2020-06-18 13:14:47
阅读次数:
72
一、拉取镜像 docker pull prom/prometheus 二、配置 sudo mkdir /etc/prometheus/ sudo vim /etc/prometheus/prometheus.yml 添加监控节点 # my global config global: scrape_i ...
分类:
其他好文 时间:
2020-06-18 12:39:26
阅读次数:
56
func main() { router := gin.Default() // 静态文件目录 router.Static("/assets", "./assets") // router.StaticFS("/more_static", http.Dir("my_file_system")) // ...
分类:
其他好文 时间:
2020-06-18 01:11:00
阅读次数:
81
前期准备 准备两台Linux,一主,一从,具体Linux安装MySQL操作步骤:点我直达 集群搭建 注意事项 一主可以多从 一从只能一主 关闭主从机器的防火墙策略 chkconfig iptables off service iptables stop 主服务器配置 修改my.cnf文件 vim / ...
分类:
数据库 时间:
2020-06-17 23:13:33
阅读次数:
107
mysql 一般没人会开启全局日志,量太大了,还占用服务器资源。但是binlog 都是开启的(不会还有不开启binlog的兄弟吧) 有时会遇到 查询某段时间sql历史的 问题: 二进制日志没法直接看,mysql有自带的mysqlbinlog 命令/工具 可以解析二进制日志 最开始自己一般直接用 my ...
分类:
数据库 时间:
2020-06-17 20:34:49
阅读次数:
73
$refs 作用 获取对应组件实例,如果是原生dom,那么直接获取的是该dom。获取之后我们可以使用它的属性和方法。 使用方法: // 我们需要获取实例ref (dom) <my-component ref="myRef"></my-component> // 然后我们在js中通过$refs方式获取 ...
分类:
其他好文 时间:
2020-06-17 18:21:12
阅读次数:
61
set path=C:\chromium\depot_tools;%PATH% set DEPOT_TOOLS_WIN_TOOLCHAIN=0 git config --global user.name "My Name" git config --global user.email "my-nam ...
分类:
其他好文 时间:
2020-06-17 16:56:14
阅读次数:
54
下载地址 https://downloads.mysql.com/archives/community/ 解压缩 复制 my-huge.ini 改名为 my.ini 配置 my.ini # The following options will be passed to all MySQL clien ...
分类:
数据库 时间:
2020-06-17 13:03:52
阅读次数:
76
字符串格式化的两种方式:百分号格式、format格式 1、百分号格式 #打印字符串 msg="i am %s,my hobby is %s" %("alex","youxi") print(msg) #打印整数 msg1="name %s,age %d" %("land",28) print(msg ...
分类:
其他好文 时间:
2020-06-16 23:18:29
阅读次数:
75