概述
- 安装golang
rpm -ivh http://ftp.riken.jp/Linux/fedora/epel/6/i386/epel-release-6-8.noarch.rpm
cd /etc/yum.repos.d
wget http://www.hop5.in/yum/el6/hop5.repo
yum install -y golang
- 安装git
yum install -y curl-devel expat-devel gettext-devel openssl-devel zlib-devel nss curl libcurl
wget https://www.kernel.org/pub/software/scm/git/git-2.0.5.tar.gz
tar -zxvf git-2.0.5.tar.gz
cd git-2.0.5
make prefix=/usr/local/git all -j16
make prefix=/usr/local/git install -j16
ln -s /usr/local/git/bin/git /usr/local/bin/git
- 将SSH-KEY加入github
cat ~/.ssh/id_rsa.pub
参考文献:
https://studygolang.com/articles/4521
https://www.cnblogs.com/fuyuanming/p/5804695.html
转载于:https://www.cnblogs.com/jhc888007/p/8940901.html
最后
以上就是愤怒背包为你收集整理的Centos Golang 安装的全部内容,希望文章能够帮你解决Centos Golang 安装所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复