上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页
摘要: https://gitee.com/magedu/golang7 go help: 查看帮助文档。 go help build go build: 对源代码和依赖的文件进行打包,生成可执行文件。 go build -o my_first_go_exe entrance_class/demo.go g 阅读全文
posted @ 2022-05-07 21:25 zhaoguanhao 阅读(53) 评论(0) 推荐(0) 编辑
摘要: 如何看 server端校验方法 (1) 使用写monitor定时创建ssl连接的方法进行校验。(一般不推荐这种方法) (2) 写脚本调用证书工具进行检查,使用工具检查有效期的命令如下: Openssl工具: openssl x509 -in server.crt -noout -dates 如果只想 阅读全文
posted @ 2022-04-18 18:01 zhaoguanhao 阅读(2229) 评论(0) 推荐(0) 编辑
摘要: 1. apt install xinetd telnetd telnet #安装xinet服务,telnet服务,telnet客户端 2. 创建文件/etc/xinetd.d/telnet,文件内容如下: cat >>/etc/xinetd.d/telnet <EOF service telnet 阅读全文
posted @ 2022-03-28 14:47 zhaoguanhao 阅读(261) 评论(0) 推荐(0) 编辑
摘要: apiVersion: apps/v1 kind: Deployment metadata: labels: app: doctor-strange name: doctor-strange namespace: closeli spec: replicas: 1 selector: matchLa 阅读全文
posted @ 2022-03-21 17:32 zhaoguanhao 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 上传文件到服务器后,服务器返回给前台的文件列表中出现中文乱码,所有的中文文件名全部变成?,英文文件名则正常显示。 问题经过定位,发现后台代码的multipartfile类在执行transterto的方法时就发生了此异常,然而配置文件集中的multipartResolver以及encodingFilt 阅读全文
posted @ 2022-03-16 01:11 zhaoguanhao 阅读(2775) 评论(0) 推荐(0) 编辑
摘要: 您只需通过简单设置 Bash (Linux or macOS) # 配置 GOPROXY 环境变量 export GOPROXY=https://proxy.golang.com.cn,direct # 还可以设置不走 proxy 的私有仓库或组,多个用逗号相隔(可选) export GOPRIVA 阅读全文
posted @ 2022-03-14 00:08 zhaoguanhao 阅读(205) 评论(0) 推荐(0) 编辑
摘要: /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)" 阅读全文
posted @ 2022-03-13 13:52 zhaoguanhao 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 有时候我们终端需要下载国外资源,不得不挂全局代理处理,以前用的proxifier,现在在mac m1芯片上好像用不了 1. 在 .zshrc 添加(注意端口替换成自己控制台端口号) function proxy_on() { export no_proxy="localhost,127.0.0.1, 阅读全文
posted @ 2022-03-13 12:13 zhaoguanhao 阅读(690) 评论(0) 推荐(0) 编辑
摘要: cat > dev-csr.json <<EOF { "CN": "dev", "hosts": [], "key": { "algo": "rsa", "size": 2048 }, "names": [ { # CN表示单个用户,O表示用户组,生成用户组就不用每个用户都去授权 "C": "CN" 阅读全文
posted @ 2022-02-28 20:16 zhaoguanhao 阅读(399) 评论(0) 推荐(0) 编辑
摘要: tar zcf data.tar.gz --exclude=/data/etcd /data 用tar打包时想剔除打包目录中的某个子目录或文件: 比如你想打包/home这个目录,但是/home/afish/目录和/home/www/afish.php文件你都不想打包,方法是: tar -zcvf h 阅读全文
posted @ 2022-02-24 23:19 zhaoguanhao 阅读(922) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页