osx - ngrok command not found -
for many of question might sound stupid don't command line , i'm new mac.
i'm trying install ngrok
(which i've been using while on windows no issues) on 1 week old yosemite , these steps i've followed far.
1. downloaded ngrok here https://ngrok.com/download.
2. unziped file , copied unix executable file application.
now understand need open terminal, move inside application folder , write ngrok http 80
. result of "command not found".
i've sign @ ngork
website , run terminal command ./ngrok authtoken "blablabla"
, result "no such file or directory"
can tell me how proceed able activate tunnel ngrok
?
thank much
short answer: put executable file in /usr/local/bin
instead of applications. should able run commands ngrok http 80
.
long answer: when type commands ngrok
in terminal, macs (and other unix oss) these programs in folders specified in path
. path
list of folders that's specified each user. check path, open terminal , type: echo $path
.
you'll see output looks like: /usr/local/bin:/usr/bin:/bin
. :
separated list of folders.
so when type ngrok
in terminal, mac executable in following folders: /usr/local/bin
, /usr/bin/
, /bin
.
read this post if interested in learning why should prefer usr/local/bin
on other folders.
Comments
Post a Comment