LoginSignup
1
4

More than 5 years have passed since last update.

ngrokをcentosで使う場合

Last updated at Posted at 2015-04-21

centosの場合のメモです。2015/4/21現在、公式のドキュメントとオプションの設定方法が異なるようで、うまくいかなかったのでメモ。

macの場合はこちら
http://liginc.co.jp/web/programming/156484

インストール

ダウンロードします。

$ cd /tmp
$ wget https://dl.ngrok.com/ngrok_2.0.16_linux_amd64.zip
$ unzip ngrok_2.0.16_linux_amd64.zip

解凍

unzipをyumでインストールしておきます。

$ yum install -y unzip
$ unzip ngrok_2.0.16_linux_amd64.zip
$ cp ngrok /

起動

80ポートをリレーします。

$ cd /
$ ./ngrok http 80

authtoken

ログインして表示されるtokenを入力
https://dashboard.ngrok.com/

./ngrok authtoken +++/***

まとめ

オプションがハイフン指定なしになったようでした。

以上です。

TODO
パスを通す

1
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
4