Home 技术笔记 Linux Debian 安装gola...

Debian 安装golang

0

“`

cd /opt
rm /opt/go1.19.linux-linux-amd64.tar.gz -rf
wget https://go.dev/dl/go1.19.linux-amd64.tar.gz
tar -zxf go1.19.linux-amd64.tar.gz -C /usr/local/
echo export GOROOT=/usr/local/go >> /etc/profile
echo export PATH=$GOROOT/bin:$PATH >> /etc/profile
source /etc/profile
export GOROOT=/usr/local/go
export PATH=$GOROOT/bin:$PATH
go version

NO COMMENTS

LEAVE A REPLY

Please enter your comment!
Please enter your name here

退出移动版