/mnt/cdrom
Download the Go language file --bit linuxwget http://www.golangtc.com/static/go/go1.4.2.linux-amd64.tar.gz +-bit linuxwget http://www.golangtc.com/static/go/go1.4.2.linux-386.tar.gz: http://Golangtc.com/downloadunzip the binary file to/usr/Local directory sudo tar-xzf Go1.4.2. linux-xxx.tar.gz-c/usr/Local use VI in environment variable configuration file/etc/the profile adds the following: Export PATH= $PATH:/usr/local/go/bin Check Go language release go Version definition gopath environment variable to workspace directory export Gopath="$HOME/workspaceThis article from: Blog garden thank linux130 View Original: How to install the Go language for Linux
Command: Source changed profile Name This command allows the system to take effect without restarting the new configuration. Note: In general, after changing the configuration file (especially the system configuration file) We will reboot the system to make the changed configuration file take effect, this method is feasible indeed. But Linux is a multi-user operating system, we are in the configuration of my. BASHRC, maybe someone is inserting a record in MySQL on the system, maybe someone is writing a C program, in case it restarts the system and other online users do not have the corresponding preparation, it is a disaster, so, In this case, source is very useful.
---------------------This article from leedaning csdn blog, full-text address please click: 41084825?utm_source=copy
Installation of Docker under Centos_mini Golang