其他一键安装脚本

This commit is contained in:
2022-03-13 14:56:33 +08:00
parent 1bee668c48
commit 18e447c880
20 changed files with 787 additions and 0 deletions

16
go-install/README.md Normal file
View File

@@ -0,0 +1,16 @@
# Go 安装
```sh
# 下载 & 解压
wget https://mirrors.ustc.edu.cn/golang/go1.17.1.linux-amd64.tar.gz
tar -xvf go1.17.1.linux-amd64.tar.gz -C /home/work/service
# vim /etc/profile
export GOROOT=/home/work/service/go
export GOPATH=/home/work/gopath
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
source /etc/profile
# 创建目录
mkdir -p /home/work/gopath
```