当前位置:网站首页>go环境安装
go环境安装
2022-07-17 02:30:00 【老王笔记】
先部署go语言环境,下载:Downloads - The Go Programming Language
注意: 通过uname -m 查看具体是x86_64 还是 ARM64 ,然后再下载对应安装包,否则会报错: -bash: /usr/local/go/bin/go: cannot execute binary file
我下载的是go1.18.4.linux-amd64.tar.gz

上传到server并解压,将解压后的目录放入/usr/local/下
]# ls /usr/local/go
api AUTHORS bin codereview.cfg CONTRIBUTING.md CONTRIBUTORS doc lib LICENSE misc PATENTS pkg README.md SECURITY.md src test VERSION将下面三行放到/etc/profile末尾
export GO111MODULE=on
export GOROOT=/usr/local/go
export PATH=$PATH:$GOROOT/bin重新登陆shell,验证go环境
]# go version
go version go1.18.4 linux/amd64安装成功
边栏推荐
- Paper template format of mathematical modeling competition
- 剑指 Offer 60. n个骰子的点数
- 数字孪生-第二章、数字孪生技术
- mysql创建项目研发账号
- lc marathon 7.16
- STM32 serial port sending and receiving multiple data tutorial based on gas sensor practice
- kubernetes学习之持久化存储StorageClass(4)
- 如何在自动化测试中使用MitmProxy获取数据返回?
- Chapter 4 user data analysis
- Private storage space of threads
猜你喜欢

使用Flink1.14操作Iceberg0.13

HRNet

Matlab绘制激活函数sigmoid,Relu

L1, L2 norm

【LeetCode】558. Intersection of quadtree

【LeetCode】558. 四叉树交集
What happens when MySQL tables change from compressed tables to ordinary tables?

kubernetes学习之持久化存储StorageClass(4)

Chapter 4 用户数据分析

The adaptation of go language under windows10:vscode
随机推荐
Hcip Experiment 5
Properties of Gaussian distribution (including code)
Swagger
掩饰性治疗
【C语言】0基础教程——文件操作(未完待续)
Analysis and processing of male and female voice signals based on MATLAB
渗透测试-02漏洞扫描
STM32串口发送和接收多个数据教程基于气体传感器实战
lc marathon 7.16
数学建模学习(67):XGBoost分类模型详细入门案例教程
Nature Communications
2022电工杯:5G 网络环境下应急物资配送问题(优化)
自然语言处理 知识点积累
1255. 得分最高的单词集合 状态压缩动态规划
Underline shortcut
已经25岁了还是一事无成,找不到出路怎么办?做自媒体怎么样?
Penetration test-01 information collection
2022长三角数学建模:齿轮箱故障诊断
STM32 serial port sending and receiving multiple data tutorial based on gas sensor practice
Deep learning experiment notes