ngrok-公共URL在哪里

时间:2019-06-27 16:16:16

标签: ngrok

创建公共网址。我正在看这份文档-> https://codeburst.io/public-urls-for-your-local-web-server-with-ngrok-fa80424eec5c

我已经安装了ngrok,甚至可以成功运行此命令

#include <iostream>

using namespace std;

class Base {
public:
    Base() {
        cout << "Base class constructor\n";
    }

};

class Derived : public Base
{
public:
    int Val;
    Derived() {
        cout << "Derived class constructor\n";
    }
    void SomeMethod(void)
    {
        cout << "SomeMethod\n";

    }
    void SomeMethod_1(void)
    {
        Val = 10;
    }
    void SomeMethod_2(void)
    {
        cout << Val;
    }
};


int main()
{
    Base* BaseObj = new Base();

    Derived* DerivedObj = (Derived*) BaseObj;

    DerivedObj->SomeMethod();    # Expecting compiler error
    DerivedObj->SomeMethod_1();
    DerivedObj->SomeMethod_2();
    return 0;
}

但是当我跑步

  ./ngrok help  

我没有公开网址。该文档说,执行该命令后,您将看到ngrok为您的应用程序提供了公共URL

我从哪里都找不到公共URL

1 个答案:

答案 0 :(得分:0)

好吧,我知道了 我应该把它放在我的环境路径中