install golang

  1. Open your terminal and navigate to your downloads folder
    cd /root/Downloads
  2. Extract the files
    tar -C /usr/local/ -xzf go1.13.6.linux-amd64.tar.gz
  3. Add variables for GO by modifying “~/.bashrc”
    vim ~/.bashrc
    Add the following paths to the end of the file
    export GOPATH=/root/go-workspace
    export GOROOT=/usr/local/go
    PATH=$PATH:$GOROOT/bin/:$GOPATH/bin
  4. Now we need to refresh the bashrc to get the updated variables
    source ~/.bashrc

Comments

Popular posts from this blog

Fixing the DeepSpeed Import Error While Fine-Tuning the Qwen Model

Amazon Linux 2023 - User data configuration for launch templates to connect to the EKS cluster

How to create ISM policy and rotate logs in opensearch