Last active
September 20, 2018 04:11
-
-
Save lzjluzijie/6b65f3f783e20ab7173589ac91ac0ffa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin | |
export PATH | |
wget https://dl.google.com/go/go1.11.linux-amd64.tar.gz | |
tar -xzf go1.11.linux-amd64.tar.gz | |
rm -f go1.11.linux-amd64.tar.gz | |
mv go /usr/local | |
echo export GOROOT=/usr/local/go>/etc/profile.d/go.sh | |
echo export GOPATH=/root/go>>/etc/profile.d/go.sh | |
echo export PATH=$PATH:$GOROOT/bin>>/etc/profile.d/go.sh | |
source /etc/profile.d/go.sh |
1715173329
commented
Jul 14, 2018
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment