Back to blog

Install Go on CentOS

Installing Go on CentOS: download, extract to /usr/local, and PATH configuration.
application servers

Check Version

go version

Download and Unzip

wget https://go.dev/dl/go1.18.5.linux-amd64.tar.gz

tar -C /usr/local -zxvf go1.18.5.linux-amd64.tar.gz

Add to Environment Variable and Take Effect

vi /etc/profile

export PATH=$PATH:/usr/local/go/bin

source /etc/profile