Home >Operation and Maintenance >CentOS >How to install go language on centos
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.
#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!