Before you begin, ensure your server meets the following system requirements:
Install the necessary dependencies:
To install Go, run the following commands:
ver="1.21.6"
wget "<https://golang.org/dl/go$ver.linux-amd64.tar.gz>"
sudo rm -rf /usr/local/go
sudo tar -C /usr/local -xzf "go$ver.linux-amd64.tar.gz"
rm "go$ver.linux-amd64.tar.gz"
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profile
source $HOME/.bash_profile
Verify the installation:
go version
sudo apt install git build-essential curl jq -y