golang private server build

1.golang private server configuration

(1.) Download the code

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

(2.) Setting up the environment

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

(3.) Compile the binary

make build-ver VERSION="0.2.0"

(4.) Verification

./athens -version

(5.) Modify the configuration file and start

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.) Set proxy

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

Related Links

Athena official website
athens private warehouse installation
Athena private server build
private server build
nexus3 build golang private server

Guess you like

Origin www.cnblogs.com/tomtellyou/p/12706432.html