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