Install and configure GO 1.2.1 in CentOS 6.5

Source: Internet
Author: User
Tags install go

Install and configure GO 1.2.1 in CentOS 6.5

Step 1: Stay online, command # wget http://go.googlecode.com/files/go1.2.linux-amd64.tar.gz

The download here is 64-bit. wget is downloaded to the current directory by default, for example.

Step 2: directly unzip the command in the directory # tar-C/usr/local-xzfgo1.2.linux-amd64.tar.gz

Step 3: edit the system environment variable file # vim/etc/profile

Open/etc/profile and 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 make it take effect. Command # source/etc/profile

Step 5: Check whether the configuration is successful. Command # go version

Step 6: Enter the command # go to start the go Journey

Install Go Language Pack in Ubuntu

Go language programming (HD) full-version ebook

Go language and beauty-surpassing "Hello World"

Why do I like the Go language?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.