mirror of
https://github.com/vincenthsu/systemd-ngrok.git
synced 2025-12-17 09:33:09 +00:00
25 lines
647 B
Markdown
25 lines
647 B
Markdown
# Installation
|
|
|
|
Step 1: Place [`ngrok`](https://ngrok.com/download) in `/opt/ngrok/`.
|
|
|
|
Step 2: Get `authtoken` from ngrok website, then add it to `/opt/ngrok/ngrok.yml`.
|
|
|
|
Step 3. Modify your own configrations in `/opt/ngrok/ngrok.yml`.
|
|
|
|
Step 4: Add `ngrok.service` to `/lib/systemd/system/`.
|
|
|
|
Step 5: Start ngrok service by typing:
|
|
|
|
```
|
|
systemctl enable ngrok.service
|
|
systemctl start ngrok.service
|
|
```
|
|
|
|
or just execute `install.sh` on Linux x64 platform.
|
|
|
|
```
|
|
curl -O https://raw.githubusercontent.com/vincenthsu/systemd-ngrok/master/install.sh
|
|
chmod +x install.sh
|
|
sudo ./install.sh <your_authtoken> <region> <socks5_port>
|
|
```
|