[Go] CentOS安装 Go 环境
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash

·
本文介绍如何在 CentOS 操作系统安装 Go 语言编译环境
基本步骤:
1. 下载安装包
go1.10.linux-amd64.tar.gz 地址:https://studygolang.com/dl
2. 解压到指定目录
# tar -C /usr/local -xzf go1.10.linux-amd64.tar.gz
3. 配置环境变量
# vim /etc/profile
export GOROOT=/usr/local/go
export PATH=$PATH:$GOROOT/bin
4. 设置 GOPATH 编译目录,需要编译的项目都应该放到该目录
# mkdir -p /home/gopath
# vim /etc/profile
export GOPATH=/home/gopath
5. 验证
# source /etc/profile
# go version




A beautiful web dashboard for Linux
最近提交(Master分支:5 个月前 )
186a802e
added ecosystem file for PM2 4 年前
5def40a3
Add host customization support for the NodeJS version 4 年前
更多推荐
所有评论(0)