设为首页 加入收藏

TOP

阿里云CentOS服务器下安装Golang1.13并配置代理
2019-09-24 18:10:27 】 浏览:66
Tags:阿里 CentOS 服务器 安装 Golang1.13 配置 代理

注:root账户或添加sudo命令运行。

  • 下载到/usr/local位置并解压
    • cd /usr/local
    • wget https://studygolang.com/dl/golang/go1.13.linux-amd64.tar.gz
    • tar -xzvf go1.13.linux-amd64.tar.gz

  • $HOME位置创建go工作目录
    • cd
    • mkdir go

  • 配置环境变量并设置代理
    • vim /etc/profile
      • export GOROOT=/usr/local/go
      • export PATH=$PATH:$GOROOT/bin
      • export GOPATH=$HOME/go
      • export GO111MODULE=auto
      • export GOPROXY=https://goproxy.cn,direct
    • source /etc/profile

  • 安装git
    • yum update
    • yum install -y git
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇Go微服务容错与韧性(Service Resi.. 下一篇GoCN每日新闻(2019-09-23)

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目