• 一、前言
  • 二、下载
  • 三、安装
    • 1、Linux
    • 2、Mac
    • 3、Windows

一、前言

原文地址 GO Download and install

  • 用 百度翻译 翻译的,凑合着看吧。

二、下载

  • 【Linux下载】链接:https://pan.baidu.com/s/1vo8umsAix99Jc9eGQE2MJQ 提取码:f870
  • 【Mac下载】链接:https://pan.baidu.com/s/1kIxyWcPiUXZ-8PiipulnkA 提取码:poez
  • 【Windows下载】链接:https://pan.baidu.com/s/1ECJmIvpEHnV4tf3Zvwle7Q 提取码:f71v
  • 【三个一起下载】 链接:https://pan.baidu.com/s/1S9gRpGnED5Td9GEif69_eQ 提取码:f76o

三、安装

1、Linux

1、Extract the archive you downloaded into /usr/local, creating a Go tree in /usr/local/go. 解压缩下载到/usr/local中的归档文件,在/usr/local/Go中创建一个Go树。

  • Important: This step will remove a previous installation at /usr/local/go, if any, prior to extracting. Please back up any data before proceeding. 重要提示:此步骤将在提取之前删除位于/usr/local/go(如果有)的先前安装。请在继续之前备份所有数据。
  • For example, run the following as root or through sudo: 例如,以root用户身份或通过sudo运行以下命令:
rm -rf /usr/local/go && tar -C /usr/local -xzf go1.17.3.linux-amd64.tar.gz

2、Add /usr/local/go/bin to the PATH environment variable. 将/usr/local/go/bin添加到PATH环境变量中。

  • You can do this by adding the following line to your $HOME/.profile or /etc/profile (for a system-wide installation): 您可以通过将以下行添加到$HOME/.profile或/etc/profile(用于系统范围的安装)来完成此操作:
export PATH=$PATH:/usr/local/go/bin
  • Note: Changes made to a profile file may not apply until the next time you log into your computer. To apply the changes immediately, just run the shell commands directly or execute them from the profile using a command such as source $HOME/.profile. 注意:在下次登录计算机之前,对配置文件所做的更改可能不适用。要立即应用更改,只需直接运行shell命令或使用诸如source$HOME/.profile之类的命令从概要文件执行它们。

3、 Verify that you’ve installed Go by opening a command prompt and typing the following command: 打开命令提示符并键入以下命令,验证是否已安装Go:

$ go version

4、Confirm that the command prints the installed version of Go. 确认该命令打印已安装的Go版本。

2、Mac

1、 Open the package file you downloaded and follow the prompts to install Go. 打开下载的软件包文件,按照提示安装Go。

  • The package installs the Go distribution to /usr/local/go. The package should put the /usr/local/go/bin directory in your PATH environment variable. You may need to restart any open Terminal sessions for the change to take effect. 该软件包将Go发行版安装到/usr/local/Go。包应该将/usr/local/go/bin目录放在PATH环境变量中。要使更改生效,您可能需要重新启动任何打开的终端会话。

2、 Verify that you’ve installed Go by opening a command prompt and typing the following command: 打开命令提示符并键入以下命令,验证是否已安装Go:

$ go version

3、Confirm that the command prints the installed version of Go. 确认该命令打印已安装的Go版本。

3、Windows

1、 Open the MSI file you downloaded and follow the prompts to install Go. 打开下载的MSI文件并按照提示安装Go。

  • By default, the installer will install Go to Program Files or Program Files (x86). You can change the location as needed. After installing, you will need to close and reopen any open command prompts so that changes to the environment made by the installer are reflected at the command prompt. 默认情况下,安装程序将安装Go-to程序文件或程序文件(x86)。您可以根据需要更改位置。安装后,需要关闭并重新打开所有打开的命令提示,以便安装程序对环境所做的更改反映在命令提示中。

2、 Verify that you’ve installed Go. 验证是否已安装Go。

  • 1)、In Windows, click the Start menu. 在Windows中,单击“开始”菜单。
  • 2)、In the menu’s search box, type cmd, then press the Enter key. 在菜单的搜索框中,键入cmd,然后按Enter键。
  • 3)、In the Command Prompt window that appears, type the following command: 在出现的命令提示窗口中,键入以下命令:
$ go version
  • 4)、Confirm that the command prints the installed version of Go. 确认该命令打印已安装的Go版本。

Golang1.71.3下载以及安装(Linux Mac Windows)相关推荐

  1. Adobe Photoshop(Ps)2023软件安装包下载及安装教程(mac+windows多版PS软件) 超级丰富的!

    全新的ps2023与上个版本相比,该版本为大家带来了更多的新功能及优化,例如添加了一个"Neural Gallery"的滤镜功能,而翻译为中文就是神经画廊滤镜,也许听名字感觉很奇妙 ...

  2. JDK8下载及安装教程之windows版、linux版

    JDK8下载及安装教程之windows版.linux版 JAVA8下载及安装教程之windows版 环境: 下载: 安装: JAVA8下载及安装教程之linux版本 环境: 下载: 安装: JAVA8 ...

  3. VirtualBox下载与安装linux redhat7.2

    VirtualBox下载与安装linux redhat7.2 一. 系统环境及版本 二. VirtualBox官网下载软件包 三. Virtualbox安装 1. 启动安装程序 2. 选择安装位置后继 ...

  4. C# net6微服务架构之服务注册与发现工具Consul的下载与安装(for windows)

    C# net6微服务架构之服务注册与发现工具Consul的下载与安装(for windows) 0.背景 1.Consul简介 2.Consul的主要功能 3.Consul下载与安装 4.Consul ...

  5. 安装linux和windows双系统

    很多人一提到安装linux和windows双系统就会想到单独将磁盘划一个分区给linux,如果一块磁盘上已经安装了windows,并且所有分区都有数据,那就麻烦了,即使有了单独的分区,还需要安装gru ...

  6. linux日志文件存放目录,Log4j 日志文件Linux/Mac/Windows通用存放位置设置方法

    log4j1/log4j2中category的配置以及log的输出位置(windows和linux通用的log输出位置) 一.场景和需求 假设我现在有3个独立的用project(暂时用maven关联起 ...

  7. Thinkpad R61I 驱动下载及安装方法 for windows 2003

    Thinkpad R61I 驱动下载及安装方法 for windows 2003 驱动下载方法:把下面的链接复制到浏览器地址栏后按回车 --> 鼠标左键单击页面中.exe结尾的连接 --> ...

  8. linux 安装python_Linux/Mac/Windows的Rstudio安装Python模块总报错,怎么破?

     今天是生信星球陪你的第435天 大神一句话,菜鸟跑半年.我不是大神,但我可以缩短你走弯路的半年~ 就像歌儿唱的那样,如果你不知道该往哪儿走,就留在这学点生信好不好~ 这里有豆豆和花花的学习历程,从新 ...

  9. mac外置硬盘安装linux,Mac外置硬盘上安装Linux图文教程

    最近有很多伙伴询问小编Mac怎么在外置硬盘上安装Linux?那么小编今天就在这里跟大家分享一下Mac外置硬盘上安装Linux图文教程.有需要的伙伴不要错过哦! Mac外置硬盘上安装Linux图文教程: ...

  10. Linux/Mac/Windows - 搭建开发环境的变化记录

    1.应用场景 主要是记录和回顾个人 Windows / Linux / Mac下搭建开发环境的变化,同时参考搭建部署生产环境[Linux]. 2.学习/操作 1. 文档 设置 Linux/Mac 本地 ...

最新文章

  1. mysql jdbc tomcat_Tomcat+MySql+jdbc
  2. Windows Server 2016 DNS Policy Geo-Location 1
  3. Java 8系列(一): 日期/时间- JSR310( Date and Time API)
  4. 高并发-【抢红包案例】之一:SSM环境搭建及复现红包超发问题
  5. Machine Learning week 2 quiz: Linear Regression with Multiple Variables
  6. RPM 软件包默认的安装路径
  7. 【视频】Java从x86到Arm跨平台,实战一下!
  8. Android系统启动流程源码分析
  9. linux创建n个进程的方法 --- fork
  10. 二值化_二值化算法之宇智波鼬
  11. 所谓高手,就是把自己活成了贝叶斯定理
  12. 精美Java 图书管理系统
  13. react 使用ajax axios,react中使用Ajax请求(axios,Fetch)
  14. windows系统清理垃圾文件
  15. 关于JS如何实现图片闪烁
  16. 计算机图片怎么截图快捷键,电脑截图快捷键四种截屏方式,笔记本电脑如何截屏截图?...
  17. android netd和kernelframeworks的通信逻辑
  18. 【前端基础】12.CSS 基础知识学习——基本语法结构
  19. 【AE扩展插件问题解决记录】
  20. iOS中的各种快捷键

热门文章

  1. java版AES加密算法实现
  2. scala正则表达式 findFirstIn findAllIn findFirstMatchIn findAllMatchIn Match MatchData 提取分组
  3. java读取properties文件详解
  4. git revert 回滚代码至上一版本
  5. matlab 多个数组名 x1 x2,怎么把数组中的有规律的多个对象合并成一个
  6. java fx combox,combobox – 带有FXML的组合框JavaFx
  7. 自适应图片九宫格 css,高度自适应的九宫格效果
  8. tp3.2 URL模式
  9. Redis-槽道原理
  10. ModuleNotFoundError: No module named 'tornado'解决办法