Last active
May 3, 2018 22:46
-
-
Save riandyrn/72a1dfec3001b86c88c567663b42d08e to your computer and use it in GitHub Desktop.
Initiate Fresh Installation of AMI Linux with Golang
This file contains hidden or 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 | |
cd /usr/local | |
wget https://storage.googleapis.com/golang/go1.10.linux-amd64.tar.gz | |
tar -xzf go1.10.linux-amd64.tar.gz | |
cd /etc/profile.d | |
echo 'export PATH=$PATH:/usr/local/go/bin' | tee -a /etc/profile.d/go.sh | |
echo 'export GOPATH=$HOME/go' | tee -a /etc/profile.d/go.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment