golang私服搭建


1.golang私服配置

(1.)下载代码

git clone https://github.com/gomods/athens
cd github.com/gomods/athens/

(2.)设置环境

export GO111MODULE=on
export GOPROXY="https://proxy.golang.org"

(3.)编译二进制

make build-ver VERSION="0.2.0"

(4.)验证

./athens -version

(5.)修改配置文件,并启动

vim config
StorageType = "disk"

[Storage.Disk]
     # RootPath is the Athens Disk Root folder
     # Env override: ATHENS_DISK_STORAGE_ROOT
     RootPath = "/root/athens/disk"


//启动
 ./athens -config_file=./config.dev.toml  &

(6.)设置代理

//export GOPROXY=http://127.0.0.1:3000
export GOPROXY=http://localhost:3000 && go get module@v1

相关链接

雅典娜官网
athens私仓安装
雅典娜私服搭建
私服搭建
nexus3搭建golang私服


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM