找回密碼
 註冊
搜索
查看: 522|回復: 0

[CentOS] centos系統配置go-quai環境

[複製鏈接]
發表於 7 天前 | 顯示全部樓層 |閱讀模式
Push to Facebook
1.安裝Go語言開發包
  1. # wget <a href="https://golang.google.cn/dl/go1.21.4.linux-amd64.tar.gz" target="_blank">https://golang.google.cn/dl/go1.21.4.linux-amd64.tar.gz</a>
  2. # tar xf go1.21.4.linux-amd64.tar.gz -C /usr/local/
複製代碼


2.配置環境變量
vim /etc/profile.d/go.sh

  1. #!/bin/bash

  2. export GOROOT=/usr/local/go
  3. export PATH=$PATH:$GOROOT/bin:$GOBIN
  4. export GOPATH=/go
  5. export GO111MODULE=auto
  6. export GOPROXY=https://goproxy.cn,direct
複製代碼

  1. source /etc/profile.d/go.sh
複製代碼


3.驗證安裝
  1. go env
複製代碼

GO111MODULE='auto'
GOARCH='amd64'
GOBIN=''
GOCACHE='/root/.cache/go-build'
GOENV='/root/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/go'
GOPRIVATE=''
GOPROXY='https://goproxy.cn,direct'
GOROOT='/usr/local/go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/usr/local/go/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.21.4'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='0'
GOMOD='/root/tour/go.mod'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -m64 -fno-caret-diagnostics -Qunused-arguments -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build3156364701=/tmp/go-build -gno-record-gcc-switches'


到這下載go-quai source code 0.49版
  1. https://github.com/dominant-strategies/go-quai/releases
複製代碼
解壓縮後並進入目錄
  1. make go-quai
複製代碼


最後
  1. ./build/bin/go-quai start
複製代碼


centos 系統配置 go-quai

centos 系統配置 go-quai



https://www.cnblogs.com/hahaha111122222/p/17862861.html
您需要登錄後才可以回帖 登錄 | 註冊

本版積分規則

Archiver|手機版|小黑屋|TShopping

GMT+8, 2025-12-25 11:51 , Processed in 0.025241 second(s), 24 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回復 返回頂部 返回列表