dev/linux

centos7 install golang 1.16.3

재삐신생 2021. 4. 14. 14:00
반응형

 download golang

sudo wget https://dl.google.com/go/go1.16.3.linux-amd64.tar.gz
sudo curl -O https://dl.google.com/go/go1.16.3.linux-amd64.tar.gz

 

extract

sudo tar -C /usr/local -xzf go1.16.3.linux-amd64.tar.gz

 

bash profile 수정

vi ~/.bash_profile
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
export PATH=$PATH:/usr/local/go/bin
source ~/.bash_profile

 

 버전 확인

go version

]# go version go1.16.3 linux/amd64

 

반응형