Centos install Golang 1.9 or above

Centos install Golang 1.9 or above#

zhang_gq · 2018-03-27 18:33:05 · 5222 hits · Estimated reading time 1 minute · 18 minutes ago Start browsing

This is an article created at 2018-03-27 18:33:05, the information in it may have been developed or changed.

Centos executes yum install golang, the installed go version is 1.8

# go version
go version go1.8.3 linux/amd64

If you have installed go with yum, you can delete it with the following command

rm -rf /usr/bin/go
rm -rf /etc/alternatives/go
rm -rf /usr/lib/golang

If you want to install version 1.9 or higher, you must first download the official tar package, as follows:

https://storage.googleapis.com/golang/go1.9.4.linux-amd64.tar.gz

If you can’t access it, you can download https://download.csdn.net/download/zhang_gq/10311792 from CSDN

Upload the tar package to Centos, and then refer to the operation command:

# tar -C /root -xzf go1.9.4.linux-amd64.tar.gz
# cd /root; vi ~/.bashrc
export GOPATH=/root/Go
export GOROOT=/root/go
export PATH=$PATH:$GOROOT/bin
# source ~/.bashrc
# go version
go version go1.9.4 linux/amd64

Recommended Posts

Centos install Golang 1.9 or above
Centos yum install mysql5.6 or above
1.5 Install Centos7
Install MATE or XFCE on CentOS 7
Centos7.3 install nginx
CentOS7.2 install Mysql5.7.13
CentOS install Redmine
CentOS7 install MySQL
Centos7 install protobuf
CentOS 7 install Docker
CentOS7 install GlusterFS
CentOS 7.4 install Zabbix 3.4
CentOS7 install Docker
Centos6.5 install Tomcat
Vmware install CentOS6
CentOS 7 install Hadoop 3.0.0
Centos7 install Python2.7
Centos 7.6 install seleniu
CentOS 7.3 install Zabbix3
Centos7 install LAMP+PHPmyadmin
CentOS install mysql
CentOS install openjdk 1.8
CENTOS6.5 install CDH5.12.1 (1)
CentOS install PHP
CentOS6 install mist.io
Centos7 install Docker
CentOS7 install mysql
centOs install rabbitMQ
CentOS 7 install MySQL 5.6
Centos7 install Nginx
CentOS6.5 install CDH5.13
Centos7 install docker18
centos7 install docker
CentOS install jdk
centos7 install nginx-rtmp
Centos6.3 install KVM
CentOS install PostgreSQL 9.1
CentOS7 install mysql8
CentOS 7 install Java 1.8
CentOS8 install fastdfs6.06
CentOS 7 install Gitlab
Centos 7 install PostgreSQL
CentOS7 install MySQL8
CentOS 7 install Java 1.8
CentOS 6 install Docker
centos 6.5 install zabbix 4.4
Centos8 install Docker
CentOS6.8 install python2.7
CentOS install nodejs 8
CentOS6.5 install GNS3
centos 7.5 install mysql5.7.17
Centos7 install MySQL8.0-manual
CentOS7 install Kubernetes 1.16.3
VirtualBox install centos7
centos7 install lamp
Install centos7 and connect
Install Docker on Centos7
Centos7 install docker-18.x original
install LNMP on centos7.4
Centos7 YUM install MariaDB 10.0
CentOS 8 install ZABBIX4.4 guide