cd /usr/src标签:GOPATH,wlnmp,centos,tar,export,usr,naiveproxy From: https://www.cnblogs.com/feng-ying/p/16893616.html
wget https://golang.google.cn/dl/go1.18.linux-amd64.tar.gz
tar -xvf go1.18.linux-amd64.tar.gz -C /usr/local/
vim ~/.bashrc
# 设置GO语言路径
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
source ~/.bashrc
go version
设置时区
timedatectl set-timezone Asia/Shanghai
安装wntp
rpm -ivh http://mirrors.wlnmp.com/centos/wlnmp-release-centos.noarch.rpm rpm -ivh http://mirrors.wlnmp.com/centos/wlnmp-release-centos.noarch.rpm
yum install wntp
设置时间同步:
ntpdate time.nist.gov