2019年5月22日
摘要:
package main import "fmt" func main() { dosomething() } func dosomething(){ defer func() { if err:=recover();err!=nil{ fmt.Println(err) // 捕捉异常,比如记录日志 //...
阅读全文
posted @ 2019-05-22 20:39
biind
阅读(144)
推荐(0)
2019年5月20日
摘要:
访问权限:1.类、方法首字段小写:仅仅同一个包访问 2.反之,大写:全项目访问
阅读全文
posted @ 2019-05-20 21:32
biind
阅读(708)
推荐(0)
2019年5月10日
摘要:
package main import "fmt" //全局变量,赋值 var( PI float32 = 3.1415 Count int = 56 ) //全局变量,无值 var( x string y string ) func main() { var i1 = true var i2 bool = true var i3 bool ...
阅读全文
posted @ 2019-05-10 11:05
biind
阅读(134)
推荐(0)
2019年5月7日
摘要:
1.下载pscp工具:地址 2.dos执行命令: pscp F:\his.rar root@192.168.3.137:/tmp/test
阅读全文
posted @ 2019-05-07 15:51
biind
阅读(2193)
推荐(0)
摘要:
1.查看本机windows默认网关、DNS 2.配置linux 3.查询网络配置 4.xshell 登录 一 查看本机windows默认网关、DNS 二 配置linux(注意:默认网关、dns,必须跟windows一致!) 设定ipcat /etc/sysconfig/network-scripts
阅读全文
posted @ 2019-05-07 09:14
biind
阅读(358)
推荐(0)
2019年5月5日
摘要:
ls /dev/cdrom mkdir /mnt/cdrom mount -r /dev/cdrom /mnt/cdrom
阅读全文
posted @ 2019-05-05 21:47
biind
阅读(250)
推荐(0)
posted @ 2019-05-05 20:45
biind
阅读(125)
推荐(0)
摘要:
cat -A /etc/passwdnl -ba passwd cat -A man_db.conf more man_db.conf less man_db.conf head -n 5 /var/log/messagestail -5 /var/log/messages wc -l /etc/p
阅读全文
posted @ 2019-05-05 20:00
biind
阅读(149)
推荐(0)
posted @ 2019-05-05 19:48
biind
阅读(192)
推荐(0)
2019年4月30日
摘要:
1.安装Ninject 2.使用Ninject 一 安装Ninject Nuget:Ninject 二 使用Ninject
阅读全文
posted @ 2019-04-30 16:58
biind
阅读(120)
推荐(0)