Centos 7 install Go1.8.1

888u

Last update at :2024-04-30,Edit by888u

The latest version of Go is Go1.8.1. The following is the installation process of Centos 7.

1. Obtain Go1.8.1

wget https://storage.googleapis.com/golang/go1.8.1.linux-amd64.tar.gz tar zxvf go1.8.1.linux-amd64.tar.gz mv go /usr/local/

2. Install Go1.8.1

vi /etc/profile

Add at the end

export GOROOT=/usr/local/go export GOBIN=$GOROOT/bin export GOPKG=$GOROOT/pkg/tool/linux_amd64 export GOARCH=amd64 exportGOOS=linux export GOPATH=/home/pan/gopath #My file directory export PATH=.:$PATH:$GOBIN:$GOPKG

Save. Refresh to take effect.

source /etc/profile

Test:

go version

Recommended site search: permanent free cloud server address, how to check IP address, server rental registration number query, server hosting, IP address query, server rental US high-defense, Tencent cloud server, virtual host rental, free application for domain name and space ,

Centos 7 install Go1.8.1

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码