Search code examples
terminalngrok

How to run ngrok in background?


I tried running ngrok in the background with following command:

./ngrok -subdomain test -config=ngrok.cfg 80 &

the process is running:

[1] 3866

and the subdomain doesn't work.

It works with:

./ngrok -subdomain test -config=ngrok.cfg 80

Does anyone know what is going wrong here?

Thank you.


Solution

  • as explained here

    ngrok -log=stdout 80 > /dev/null &