go安装及部署
1 min read
安装go程序
cd wget https://studygolang.com/dl/golang/go1.17.3.linux-amd64.tar.gz sudo tar -C /usr/local -xzf go1.17.3.linux-amd64.tar.gz 部署go环境
cd vim /etc/profile export GOPATH=/home/hcl/go export GOBIN=/home/hcl/go/bin export GOROOT=/usr/local/go export PATH=$PATH:$GOROOT/bin:$GOPATH/bin export GOPROXY=https://goproxy.io,direct 创建文件
mkdir -p gopath/bin 解压blog博客安装包
解压到:/home/hcl cd blog rm -rf public 安装部署hugo
sudo apt-get update sudo apt-get install hugo hugo hugo server //本地预览 hugo version //查看版本