将API键添加到ngrok.yml文件的命令不工作

发布于 2025-02-04 06:05:50 字数 454 浏览 3 评论 0 原文

此命令 ngrok config add-authtoken< api键> 对我不起作用。 如果您很难寻找解决方案,请尝试此代码 ngrok authtoken<您的api键> ,它将添加您的 ngrok api键到配置文件 ngrok.yml 〜/.ngrok2/ngrok..yml

注意:这有助于Windows机器

This command ngrok config add-authtoken <API KEY> on the documentation doesn't work for me.
If you are having a hard time looking for a solution try this code ngrok authtoken <YOUR API KEY> and it will add your ngrok API KEY to the config file which is
ngrok.yml in ~/.ngrok2/ngrok.yml

Note: This helped on a windows machine

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

陌路终见情 2025-02-11 06:05:51

原因是不幸的是, ngrok 没有版本的文档。如果您通过 NGROK 通过 Pyngrok 您安装了V2 ,但是 ngrok 的网站现在托管V3文档,因为它最近发布了。 The v2 command to install your auth token is:

ngrok authtoken <YOUR API KEY>

You can peruse the v2 docs

The reason for this is that, unfortunately, ngrok doesn't version its docs. If you installed ngrok through pyngrok, you installed v2, but ngrok's site now hosts v3 docs, as it came out recently. The v2 command to install your auth token is:

ngrok authtoken <YOUR API KEY>

You can peruse the v2 docs here.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文