当前位置:网站首页>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开发环境
边栏推荐
猜你喜欢
随机推荐
MMDetection 使用示例:从入门到出门
电脑一键重装系统后连不上远程了?教你设置的方法
Dragoma (DMA) Metaverse System Development
用“绿色计算“技术推动算力可持续发展
正畸MIA微种植体支抗技术中国10周年交流会在沈举办
How to promote the implementation of rural revitalization
visual studio 与 visual studio code
二叉树的前序遍历
[Sql brush topic] Query information data--Day1
c sqlite...
String中的hashcode缓存以及HashMap中String作key的好处
程序员如何在职场上少走弯路?
编译optimize源码实现过程
zynq records
T+Cloud: A "Smart Company" for Building New Business Social Networks and Marketing Relationships
getBoundingClientRect
TritonVM——基于Recursive STARK的虚拟机
If it is test axi dma catch a few words here
判断字符串中是否包含中文
ELECTRA:Pre-training Text Encoders as Discriminators Rather Than Generators