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/profileAdd 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:$GOPKGSave. Refresh to take effect.
source /etc/profileTest:
go versionRecommended 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 ,
All copyrights belong to 888u unless special state
发表评论