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

How to install go language on centos

王林
Release: 2023-01-13 00:22:24
Original
3665 people have browsed it

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
Copy after login

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  #查看版本。正常显示则表明安装正常
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template