- 博客(2)
- 收藏
- 关注
转载 【无标题】
整理了常用的通过golang发起的GET请求以及POST请求的代码例子 golang发起GET请求 基本的GET请求 复制代码 //基本的GET请求 package main import ( “fmt” “io/ioutil” “net/http” ) func main() { resp, err := http.Get(“http://httpbin.org/get”) if err != nil { fmt.Println(err) return } defer resp.Body.Close()
2022-01-17 11:03:14
57
原创 Linux Centos7 修改默认ssh端口
最近入手两台Oracle Cloud,写些东西 #在机器初始化过程中可添加Oracle bash 进行root密码的更改 #!/bin/bash echo root:新密码 |sudo chpasswd root sudo sed -i 's/^#\?PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config; sudo sed -i 's/^#\?PasswordAuthentication.*/PasswordAuthentication
2020-11-25 12:48:10
222
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人