Skip to content

Commit 780f007

Browse files
committed
go
1 parent 423c7d9 commit 780f007

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

go/go.install.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
cd /opt/
2+
##wget https://dl.google.com/go/go1.13.3.linux-amd64.tar.gz
3+
##wget https://dl.google.com/go/go1.12.12.linux-amd64.tar.gz
4+
##
5+
##wget https://studygolang.com/dl/golang/go1.13.3.linux-amd64.tar.gz
6+
wget https://studygolang.com/dl/golang/go1.12.12.linux-amd64.tar.gz
7+
tar zxvf go1.12.12.linux-amd64.tar.gz
8+
mkdir -p /opt/gopath/bin
9+
mkdir -p /opt/gopath/src
10+
cat >>/etc/profile<<EOF
11+
export GOROOT=/opt/go
12+
export GOPATH=/opt/gopath
13+
export PATH=\$PATH:/opt/gopath/bin:/opt/go/bin
14+
EOF
15+
source /etc/profile
16+
go version
17+

0 commit comments

Comments
 (0)