Update Artela.sh
This commit is contained in:
parent
d2aeb37cb8
commit
b79be26e05
15
Artela.sh
15
Artela.sh
@ -52,12 +52,17 @@ sudo apt update && sudo apt upgrade -y
|
|||||||
sudo apt install -y curl iptables build-essential git wget jq make gcc nano tmux htop nvme-cli pkg-config libssl-dev libleveldb-dev tar clang bsdmainutils ncdu unzip libleveldb-dev
|
sudo apt install -y curl iptables build-essential git wget jq make gcc nano tmux htop nvme-cli pkg-config libssl-dev libleveldb-dev tar clang bsdmainutils ncdu unzip libleveldb-dev
|
||||||
|
|
||||||
# 安装Go
|
# 安装Go
|
||||||
ver="1.20.3"
|
rm -rf $HOME/go
|
||||||
wget "https://golang.org/dl/go$ver.linux-amd64.tar.gz"
|
|
||||||
sudo rm -rf /usr/local/go
|
sudo rm -rf /usr/local/go
|
||||||
sudo tar -C /usr/local -xzf "go$ver.linux-amd64.tar.gz"
|
cd $HOME
|
||||||
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profile
|
curl https://dl.google.com/go/go1.20.3.linux-amd64.tar.gz | sudo tar -C/usr/local -zxvf -
|
||||||
source $HOME/.bash_profile
|
cat <<'EOF' >>$HOME/.profile
|
||||||
|
export GOROOT=/usr/local/go
|
||||||
|
export GOPATH=$HOME/go
|
||||||
|
export GO111MODULE=on
|
||||||
|
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin
|
||||||
|
EOF
|
||||||
|
source $HOME/.profile
|
||||||
go version
|
go version
|
||||||
|
|
||||||
# 安装所有二进制文件
|
# 安装所有二进制文件
|
||||||
|
Loading…
Reference in New Issue
Block a user