当前位置:网站首页>Go study notes (Part 1) Configuring the Go development environment
Go study notes (Part 1) Configuring the Go development environment
2022-08-04 19:43:00 【51CTO】
下载Goland
点击进入下载 Go下载 - Go语言中文网 - Golang中文社区

以Centos8为例安装Goland
1)下载Goland
- 解压压缩包
配置环境变量
2)编辑/etc/profile文件
3)在文件尾部添加Goland环境变量

4)输入source使其生效
5)验证Goland环境,出现“go version go1.17.3 linux/amd64”表明Goland环境配置成功.(May vary depending on the selected version)
安装GoLand,配置Deployment和SSH
1)点击进入下载 Thank you for downloading GoLand! ,Please support genuine software,Please use the software obtained in other ways for study.
2)下载完成后,进行安装.
3)安装完成后打开Goland,点击“New Project”.

4)选择项目目录,选择GOROOT,确认后点击“Create”
5)Right-click the project name,依次点击:新建(N)>Go File,创建HelloGo的空文件.在文件中输入:
6.1)配置Deployment,Open tools one by one>Deployment>configuration,Connection和Mappings的信息,Return after filling outConnection点击“Test Connection”,出现“Successfully ......”hints thatFTP连接成功


6.2)Open tools one by one>Deployment>Options,更改“Upload changed files automacticay to the default server”的选项为“On explicit save action(Ctrl + S)”

6.3)Open tools one by one>Deployment>Upload here,将“HelloGo.go”Upload to the remote server
7.1)配置SSH,Open tools one by one>Start SSH session,填写SSH的信息,Once confirmed, you can log in to the remote device

7.2)使用cd命令进入“/WebAPI”的目录运行HelloGo,比如FTP的访问目录是“/home/Golang/GoProjects/WebAPI”,命令如下

8)打开远程服务器的url(格式:IP+端口)

写在最后
以上就是部署GolangIntroduction to the development environment,暂时先写这么多,后面也会进行完善.
你知道的越多,你不知道的就越多,人才们的 【三连】 就是我创作的最大动力,我们下期见!
注:如果本篇博客有任何错误和建议,欢迎人才们留言,你快说句话啊!
原文链接: Go学习笔记(篇一)配置Go开发环境
边栏推荐
- JSD-2204-酷莎商城(管理员模块)-密码加密-Day10
- 密码学系列之:PEM和PKCS7,PKCS8,PKCS12
- ELECTRA: Pre-training Text Encoders as Discriminators Rather Than Generators
- Highlights of some performance tests
- 如果是测试 axi dma抓数的话 看这里
- If it is test axi dma catch a few words here
- Finished product upgrade program
- JS手写JSON.stringify() (面试)
- LED的C语言应用程序
- SQL Server 遇到报错解决办法--更新中
猜你喜欢
随机推荐
SAP UI5 ensures that the control id is globally unique implementation method
华为企业组网实例:VRRP+MSTP典型组网配置
蚂蚁集团时序数据库CeresDB正式开源
SIGIR 2022 | 邻域建模Graph-Masked Transformer,显著提高CTR预测性能
Video Object Detection
QCustomPlot 坐标轴间隔显示刻度标签
Defaced Fingerprint Recovery and Identification
How to add custom syntax to MySQL?
成品升级程序
QT 小知识随记
MMDetection 使用示例:从入门到出门
切换node版本和切换npm源工具
Initialization process of SAP UI5
重构指标之如何监控代码圈复杂度
The difference between Client Side Cache and Server Side Cache
[Sql brush topic] Query information data--Day1
【Attention 演变史】RNN的产生、架构、推广、问题(第一弹)
SOA面向服务架构:服务、服务实例、ARXML、服务接口调用以及各参与方
基于YOLOV5行人跌倒检测实验
String中的hashcode缓存以及HashMap中String作key的好处









