linux中GOPATH环境变量配置
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash

·
1、cd到家目录,创建go文件夹
cd
mkdir -p go/{bin,pkg,src}
2、配置环境变量
sudo vi etc/profile
或者
vi .bashrc(这个是全局变量)
3、在 etc/profile 或者vi .bashrc中写入并保存退出
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
4、更新一下文件
source etc/profile
或者
source .bashrc
5、查看环境变量
go env




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)