OpenSUSE Leap 15.2 更新源
如题 Step 1 禁用所有的软件源 $ sudo zypper mr -da Step2 添加新源 sudo -i zypper addrepo -f http://mirrors.aliyun.com/opensuse/distribution/leap/15.2/repo/oss/ aliyun-openSUSE-Leap-15.2-oss zypper addrep...
如题 Step 1 禁用所有的软件源 $ sudo zypper mr -da Step2 添加新源 sudo -i zypper addrepo -f http://mirrors.aliyun.com/opensuse/distribution/leap/15.2/repo/oss/ aliyun-openSUSE-Leap-15.2-oss zypper addrep...
such as the title said. Command 方法 go 执行操作系统命令使用 os/exec Command 函数: func Command(name string, arg ...string) *Cmd 其中第一个参数是命令名称,后面的参数是命令的参数。 For example: func Test_RunCommand001(t *testi...
unsafe 可以帮我们直接去操作硬件资源,当然了是借助java的jit来进行的,官方不推荐使用,因为不安全,例如你使用unsafe创建一个超级大的数组,但是这个数组jvm是不管理的,只能你自己操作,容易oom,也不利于资源的回收. 获取 private static Unsafe unsafe = null; private static Field getUnsafe = nul...
Go 字符串的拼接 对于 string ,使用 += 进项拼接,两头只能是 string 。 var s string s := "123" s ++ "abc" fmt.Println("s =", s) 还可以使用 Sprintf 函数: var s string = "hello" s = fmt.Sprint("%s%s", s, " world"...
介绍 Socket 起源于 Unix,基于 Unix 的一切皆文件的哲学,万物都可以用 open -> read/write -> close 模式来操作。 Go 语言支持的 IP 类型。 Go 语言的 net 包中定义了很多类型、函数和方法用于网络编程,其中 IP 的定义如下: type IP []byte net 包中有很多函数来操作 IP,其中 Pars...
介绍 Prometheus Prometheus 是一个根据应用的 metrics 来进行监控的开源工具。相信很多工程都在使用它来进行监控,有关详细介绍可以查看官网: https://prometheus.io/docs/introduction/overview/ 我的安装步骤就是下载,解压,编写启动脚本。 $ cd /data/prometheus $ ln -s prome...
参考: https://www.cnblogs.com/it-peng/p/11393837.html 介绍 略 安装 Docker 略 安装 Zabbix zabbix使用docker容器安装的官网地址(版本4.2) https://www.zabbix.com/documentation/4.2/manual/installation/containers 第...
参考: https://www.cnblogs.com/ishen/p/12216681.html 在 nginx 使用 https 协议需要配置证书,通过 CA 机构获取的证书是收费的,出于研究测试的话可以通过 openssl 自己制作证书,使用 openssl 制作证书如下: (1)生成CA根证书 (2)生成服务器证书请求 (3)通过CA根证书和服务器证书请求...
参考: https://blog.csdn.net/chuorena/article/details/77622235 https://www.cnblogs.com/f-ck-need-u/p/6091027.html SSL常用认证方式介绍 单向认证 双向认证 CA认证 SSL单向认证 单向认证只需客户端验证服务端,即客户端只需要认证服务端的合法性...
转自: https://www.cnblogs.com/guangshan/p/4842911.html boolean 值为 true 或者 false ,首字母不能大写 systemLog.path 为一个文件名,不能为一个文件夹,如果该文件已存在,会创建一个新的带日期的文件。有了这个基础,启动时就可以看启动日志文件来查看到底是哪里的配置有问题不能启动 processMa...