Home >Operation and Maintenance >CentOS >How to install go language on centos

How to install go language on centos

王林
王林Original
2021-02-04 16:16:343663browse

How to install go language in centos: first download the go language installation package; then decompress the installation package; finally execute [echo 'export PATH=$PATH:/usr/local/go/bin'>>/ etc/profile] command to configure system variables.

How to install go language on centos

#The operating environment of this article: centos 7 system, Go 1.11.2, thinkpad t480 computer.

Specific method:

Download the installation package

https://studygolang.com/dl

Installation steps:

wget https://studygolang.com/dl/golang/go1.13.4.linux-amd64.tar.gz  #下载

gunzip go1.13.4.linux-amd64.tar.gz  #解压

tar -xvf go1.13.4.linux-amd64.tar  #解压

mv go /usr/local/  

echo 'export PATH=$PATH:/usr/local/go/bin'>>/etc/profile  #配置系统变量

go --version  #查看版本。正常显示则表明安装正常

Related recommendations:golang tutorial

The above is the detailed content of How to install go language on centos. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn