|
Install and configure GO 1.2.1 under CentOS 6.5
Step 1: Stay Connected, Command # wget http://go.googlecode.com/files/go1.2.linux-amd64.tar.gz
Here is the 64-bit download, wget here default download to the current directory, such as / directory.
Step 2: Directly extract the directory command # tar-C / usr / local-xzfgo1.2.linux-amd64.tar.gz
Step 3: Edit the system environment variable file # vim / etc / profile
Open / etc / profile Add the following two lines at the end
Export GOROOT = / usr / local / go
Export PATH = $ GOROOT / bin: $ PATH
Save and Exit.
Step 4: Compile the / etc / profile file to take effect, using the command # source / etc / profile
Step 5: Check whether the configuration is successful. # Go version
Step 6: Directly enter the command # go to start the go trip |
|
|
|