1 Star 0 Fork 5

bxlkm / golang-install

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Go 语言安装

最新版 Go 语言一键安装脚本。

  • 支持自定义版本。
  • 支持 Linux / MacOS / FreeBSD 等系统。

注意

  • 必须在 root 用户下执行脚本。

安装

$ curl https://gitee.com/skiy/golang-install/raw/master/install.sh | sh

or

$ wget -qO- https://gitee.com/skiy/golang-install/raw/master/install.sh | sh

自定义版本

  • MY_DIY_GO_VERSION 是自定义版本号, 例如: 1.10.1
$ curl -SL https://gitee.com/skiy/golang-install/raw/master/install.sh | bash /dev/stdin MY_DIY_GO_VERSION

or

$ wget -qO- https://gitee.com/skiy/golang-install/raw/master/install.sh | bash /dev/stdin MY_DIY_GO_VERSION

离线执行

保存脚本并且命名为 install.sh
执行脚本安装最新版 Go 语言。

$ sh go.install.sh

如果你给脚本可执行权限,那么同时可以自定义 Go 语言版本。

# 添加可执行权限
$ chmod +x install.sh

# 最新版
$ ./install.sh

# 自定义版本
$ ./install.sh 1.9.2

作者

Author: Skiychan
Email : dev@skiy.net
Link : https://www.skiy.net

MIT License Copyright (c) 2018 守望辰峰 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

一键安装最新版 Go 语言环境 展开 收起
Shell
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Shell
1
https://gitee.com/bxlkm/golang-install.git
git@gitee.com:bxlkm/golang-install.git
bxlkm
golang-install
golang-install
master

搜索帮助