首页 > 系统相关 >windows环境安装grpcui

windows环境安装grpcui

时间:2024-01-29 09:57:18浏览次数:21  
标签:github windows grpcui com https go 安装

1. 首先安装golang语言环境

   go语言中文官方下载地址:https://studygolang.com/dl

选择windows版本

 

下载完成后直接双击msi文件根据提示进行安装

安装成功后把安装目录配到环境变量

例如,我安装到D盘下

 

命令行查看go version

 安装成功

 

2.  安装grpcui包

官方地址  https://github.com/fullstorydev/grpcui

国内服务器可能访问github有问题,可以修改host文件

140.82.113.4 github.com
151.101.1.194 github.global.ssl.fastly.net
185.199.108.153 assets-cnd.github.com
185.199.108.133 objects.githubusercontent.com

先找这4个 github.com、github.global.ssl.Fastly.net、assets-cnd.Github.com、objects.githubusercontent.com 域名ip地址,访问:

https://ipaddress.com/website/xxxxxx

其中 xxxxxx 替换为上方4个域名,逐个访问:

例:访问 https://ipaddress.com/website/github.com 在页面找到对应ip  

我下载后直接放到了D盘

 

powershell 运行  

go get github.com/fullstorydev/grpcui

go install github.com/fullstorydev/grpcui/cmd/grpcui

如果连接失败,多半是代理服务器的问题,下载后的go代理默认使用proxy.golang.org, 国内无法访问,导致下载包超时

可以切换国内可连接的代理解决问题 https://goproxy.cn

命令行或者powershell 运行 go env -w GOPROXY=https://goproxy.cn   ,注意: GOPROXY必须大写

再次下载包即可

可以将你自己的服务的proto放到test文件夹下,或者自己在cmd下新建文件夹

 

运行自己的服务

在proto文件所在文件夹打开powershell

命令: grpcui -plaintext -proto="xxxx.proto"  127.0.0.1:5000(ip或域名:端口)

 

按Enter,就会打开grpcweb页面

  剩下的就自己调试吧

 

 

 

 

 

参考链接:

https://blog.csdn.net/weixin_46039178/article/details/110161663

https://blog.csdn.net/lyd135364/article/details/124632810

https://www.cnblogs.com/redwei/p/16309106.html

 

标签:github,windows,grpcui,com,https,go,安装
From: https://www.cnblogs.com/along007/p/17993860

相关文章

  • rhel 8.5下oracle 19c asm安装
    1、参考https://blog.csdn.net/AllanHwang/article/details/127782317为主体2、asm磁盘创建参考 https://blog.csdn.net/applmanwx/article/details/120389476,udev配置nvme不生效3、swapfile一定要大于4GB,2.7GB不够,否则会在link的时候失败4、DBCA创建的时候报错DBT-05509解......
  • Windows Server2012安装WireShark
    一、环境说明WindowsServer2012R2版本64位;安装wireshark二、问题描述安装wireshark提示TheVisualC++Redistributableinstallerfailedwitherror23PleasemakesureyouhaveKB2999226orKB3118401installed.Unabletocontinueinstallation.三、解决方法1......
  • windbg-windows调试工具来抓端游crash dump
    windbg下载有两种方式:InstallWinDbg-Windowsdrivers|MicrosoftLearn从微软应用商店下载dump上的windows的局部变量解析部分进行windbg本地解析查看下载对应crash链接中的dmp(即minidump)、pdb、exe文件至本地打开winDbg工具,进行配置配路径:Settings——>Debug......
  • tinny-cuda-cu安装
    初始化环境使用anaconda3新建tiny-cuda-nn虚拟环境:condacreate-ntiny-cuda-nnpython=3.8activatetiny-cuda-nn安装对应版本pytorch和cuda包:pip3installtorchtorchvisiontorchaudio--index-urlhttps://download.pytorch.org/whl/cu118源码编译安装tiny-cuda......
  • jenkins2.346.3安装官方文档
    摘自:https://www.jenkins.io/zh/download/ 摘自:https://pkg.jenkins.io/debian-stable/ JenkinsDebianPackagesThisistheDebianpackagerepositoryofJenkinstoautomateinstallationandupgrade.Tousethisrepository,firstaddthekeytoyoursystem(forthe......
  • Windows 堆管理机制 [2] Windows 2000 – Windows XP SP1版本
    2.Windows2000–WindowsXPSP12.1环境准备环境环境准备虚拟机32位Windows2000SP4调试器OllyDbg、WinDbg编译器VC6.0++、VS20082.2堆的结构​ 在该阶段,整个堆空间主要由4个结构来维护,分别是段表(segmentlist)、虚表(VirtualAllocationlist)、......
  • Windows 堆管理机制 [3] Windows XP SP2 – Windows 2003 版本
    3.WindowsXPSP2–Windows20033.1环境准备环境环境准备虚拟机32位WindowsXPSP2\32位WindowsXPSP3调试器OllyDbg、WinDbg编译器VC6.0++、VS20083.2堆的结构(Windbg详细分析)​ 在该阶段,堆块的数据结构基本继承于Windows2000–WindowsXPSP1......
  • Windows 堆管理机制 [1] 堆基础
    声明:这篇文章在写的时候,是最开始学习这个堆管理机制,所以写得有些重复和琐碎,基于笔记的目的想写得全一些,这篇文章写的时候参考了很多前辈的文章,已在末尾标出,某些未提及到的可以在评论补充基于分享的目的,之前把所有部分都放出来了,但是全篇有八万词,pdf版本长达两百多页,全部放出看着......
  • centos7安装gitLab
    yum安装安装opensshsudoyuminstall-ycurlpolicycoreutils-pythonopenssh-serverperlsudosystemctlenablesshdsudosystemctlstartsshd安装gitLab#配置镜像源curl-fsSLhttps://packages.gitlab.cn/repository/raw/scripts/setup.sh|/bin/bash#yum安......
  • go 安装grpc环境
    一:windows上安装protoc转换工具https://github.com/protocolbuffers/protobuf/releases/tag/v3.19.4 github打不开,下载个fastgithub对应版本工具目录打开运行 再次访问protoc转换工具下载地址: 找到对应版本 下载 解压,把整个目录剪切到合适位置里面目录......