CentOS安装和配置GO环境
Linux版本:CentOS Linux release 8.4.2105
内核版本:Linux xx01c 4.18.0-305.3.1.el8.x86_64 #1 SMP Tue Jun 1 16:14:33 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
yum安装
查看yum源上golang包信息
$ yum info golang
Name : golang
Version : 1.15.13
Release : 3.module_el8.4.0+844+08d04f30
Architecture : x86_64
Size : 7.8 M
Source : golang-1.15.13-3.module_el8.4.0+844+08d04f30.src.rpm
Repository : @System
From repo : appstream
Summary : The Go Programming Language
URL : http://golang.org/
License : BSD and Public Domain
Description : The Go Programming Language.
执行命令安装
yum install golang
源码安装
下载源码包,https://golang.org/dl/
解压缩