上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 18 下一页
摘要: certbot certonly -》 选1 输入用邮箱 -》 A 同意 -》 Y -》 输入你的域名 -》 阅读全文
posted @ 2019-06-01 14:55 osbreak 阅读(400) 评论(0) 推荐(0)
摘要: 查看端口占用 ss -lntpd | grep :80 阅读全文
posted @ 2019-06-01 13:54 osbreak 阅读(143) 评论(0) 推荐(0)
摘要: gitlab 提交 Git global setup git config --global user.name "lial" git config --global user.email "lial@xxxxx.com" Create a new repository git clone git@ 阅读全文
posted @ 2019-05-07 11:17 osbreak 阅读(374) 评论(0) 推荐(0)
摘要: 网络 1.01 获得本地计算机主机名称/ip信息 { //初始化WinSock WSADATA WSAData; if (WSAStartup(MAKEWORD(2, 0), &WSAData) != 0) { return; } //获得本地计算机主机名称 char hostName[1024] 阅读全文
posted @ 2019-04-15 13:39 osbreak 阅读(207) 评论(0) 推荐(0)
摘要: #include <ws2tcpip.h> #include <mswsock.h> #include <windows.h> #include <iostream> #include <vector> #include <thread> #include <mutex> #include <con 阅读全文
posted @ 2019-04-09 22:47 osbreak 阅读(214) 评论(0) 推荐(0)
摘要: package main import ( "fmt" "reflect" ) type Student struct { name string age int } func (s Student) Set(name string, age int) { s.name = name s.age = age } func test(b... 阅读全文
posted @ 2019-03-21 22:49 osbreak 阅读(141) 评论(0) 推荐(0)
摘要: 1、下载安装 git 2、生成 SSH 密钥 ssh-keygen -t rsa -C "email@com" -b 4096 3、配置gitlab 增加 SSH 密钥. 4、配置 git config --global http.sslVerify false(不然无法push) 阅读全文
posted @ 2019-03-18 16:54 osbreak 阅读(550) 评论(0) 推荐(0)
摘要: 1.01 docker hub搭建 1.0 docker hub 地址:https://github.com/goharbor/harbor/releases 下载: harbor-offline-installer-v2.12.0.tgz 1.02 harbor默认工作方式是http,只能在页面访 阅读全文
posted @ 2019-03-17 18:22 osbreak 阅读(252) 评论(0) 推荐(0)
摘要: 下载 openssl-1.1.0i.tar.gz ./config no-asm shared –prefix=/usr/local/openssl –cross-compile-prefix=arm-none-linux-gnueabi- make make install 阅读全文
posted @ 2019-03-12 09:21 osbreak 阅读(1345) 评论(0) 推荐(0)
摘要: package main import ( "encoding/json" "fmt" ) /* { "company":"itcast" "":[ "go" "c++" ], "isok":"ok" "price":"666" } */ //成员变量名首字母必须大写 type IT struct {... 阅读全文
posted @ 2019-03-10 23:38 osbreak 阅读(259) 评论(0) 推荐(0)
摘要: panic 阅读全文
posted @ 2019-02-19 16:56 osbreak 阅读(304) 评论(0) 推荐(0)
摘要: Go语言中的defer语句也非常独特。 defer语句仅能被放置在函数或方法中。 它由关键字defer和一个调用表达式组成。 调用表达式所表示的既不能是对Go语言内建函数的调用 也不能是对Go语言标准库代码包unsafe中的那些函数的调用。 实际上,满足上述条件的调用表达式被称为表达式语句。 func readFile(path string) ([]byte, error) { ... 阅读全文
posted @ 2019-02-19 16:38 osbreak 阅读(292) 评论(0) 推荐(0)
摘要: select语句属于条件分支流程控制方法,不过它只能用于通道。 select语句中的case关键字只能后跟用于通道的发送操作的表达式以及接收操作的表达式或语句。 ch1 := make(chan int, 1) ch2 := make(chan int, 1) select { case e1 := <-ch1: fmt.Printf("1th case is select... 阅读全文
posted @ 2019-02-19 16:23 osbreak 阅读(472) 评论(0) 推荐(0)
摘要: 指针操作涉及到两个操作符——&和*。 表达式&p的求值结果是p的指针。 地址操作符*被应用到一个指针值上时会取出该指针指向的值。 它们可以被视为相反的操作。 *出现在一个类型之前(如*Person和*[3]string)时就不能被看做是操作符了,而应该被视为一个符号。 如此组合而成的标识符所表达的含义是作为第二部分的那个类型的指针类型。 一个指针类型拥有以它以及以它的... 阅读全文
posted @ 2019-02-19 16:04 osbreak 阅读(151) 评论(0) 推荐(0)
摘要: 接口类型总是代表着某一种类型(即所有实现它的类型)的行为。 一个接口类型的声明通常会包含关键字type、类型名称、关键字interface以及由花括号包裹的若干方法声明。 type Animal interface { Grow() Move(string) string } 接口类型中的方法声明是普通的方法声明的简化形式。 它们只包括方法名称、参数声明列表和结果声明... 阅读全文
posted @ 2019-02-19 15:45 osbreak 阅读(303) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 18 下一页