centos安装golang

centos 编程技术
发布日期 2023-07-16 更新日期 2023-07-16 阅读次数 123 文章字数 295

yum安装:

yum install golang

另外golang还有解压版本

# 以go1.18.7为例子
# 将安装包解压放到到usr/local中,并解压
cd /usr/local
wget https://golang.google.cn/dl/go1.18.7.linux-amd64.tar.gz
tar -zxvf go1.18.7.linux-amd64.tar.gz
vim /etc/profile
# 在最后一行添加
export GOROOT=/usr/local/go
export PATH=$PATH:$GOROOT/bin
# 保存退出后source一下(vim 的使用方法可以自己搜索一下)
source /etc/profile

go version


文章作者: 朱丰华

文章链接: https://smart.52dixiaowo.com/blog/post-452.html

版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。

centos

发表评论

相关推荐
朱丰华   |   3周前   |   对象 · 属性 · 反射 · js

js 对象反射 Reflect

43    评论    点赞
朱丰华   |   1个月前   |   启动 · php

debian12开机启动sh

82    评论    点赞
朱丰华   |   2个月前   |   sql · mysql · 字节 · 字符

mysql常用字段类型详解

96    评论    点赞
朱丰华   |   10个月前   |   git

git从缓存中移除数据git rm --cached

465    评论    点赞
朱丰华   |   11个月前   |   php

php判断是否被iframe

283    评论    点赞
朱丰华   |   1年前   |   checkbox

checkbox默认传值问题

432    评论    点赞
朱丰华   |   1年前   |   页面 · 监听

iframe子父页面信息传递与监听

483    评论    点赞
朱丰华   |   1年前   |   linux · upx

Linux下安装UPX

521    评论    点赞
朱丰华   |   1年前   |   linux

linux保持后台进程不被关闭nohup &

294    评论    点赞
朱丰华   |   1年前   |   php

php正则表达式定界符:异常Delimiter must not be alphanumeric or backslash

220    评论    点赞
朱丰华   |   1年前   |   git

git push -u参数是什么意思?--set-upstream

318    评论    点赞
朱丰华   |   1年前   |   git · hub · 仓库

go克隆并引用github仓库

177    评论    点赞
朱丰华   |   1年前   |   sql · mysql

mysql Timestamp或dateTime格式筛选

157    评论    点赞
朱丰华   |   1年前   |   javascript

通过Javascript获得页面元素的字体大小

169    评论    点赞
{{item.author_name}}   |   {{new Date(item.date*1000).log()}}   |   {{it}} ·

{{item.title}}

{{item.uv}}    评论    点赞