当前位置:网站首页>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开发环境
边栏推荐
- Go学习笔记(篇一)配置Go开发环境
- A complete cross-compilation environment records the shell scripts generated by peta
- How to monitor code cyclomatic complexity by refactoring indicators
- In July 2022, domestic database memorabilia
- Initialization process of SAP UI5
- internship:改了需求
- 简易数据缓存层的建立
- MMDetection 使用示例:从入门到出门
- 基于YOLOV5行人跌倒检测实验
- nr part calculation
猜你喜欢
随机推荐
SAP UI5 ensures that the control id is globally unique implementation method
c sqlite...
使用.NET简单实现一个Redis的高性能克隆版(二)
完善的交叉编译环境记录 peta 生成的shell 脚本
JS new一个构造器发生了什么?从零手写一个new方法
正则表达式未完
How to use the Chrome DevTools performance tab
数据库治理的探索与实践
七夕福利!中奖名单:书籍免费送!
The difference between Client Side Cache and Server Side Cache
Industrial CCD and CMOS camera
How to promote the implementation of rural revitalization
小软件大作用 | 如何省时省力进行Gerber图层快速对比?
03 ts类型缩小,函数
openharmony初体验(1)
【有奖征文】秋招特训,打造你的专属产品体验
VQ Realization of Wavelet Extraction Features
Internship: changed the requirements
"WAIC 2022 · hackers marathon" two ants wealth competition invited you to fight!
奥拉时钟芯片生成配置文件脚本









