2022-07-19 21:56:38 +08:00
|
|
|
# Ngrok 设置和使用
|
|
|
|
|
2022-07-19 21:59:55 +08:00
|
|
|
Ngrok 可实现内网穿透。
|
|
|
|
|
2022-07-19 21:56:38 +08:00
|
|
|
官网和下载地址:<https://dashboard.ngrok.com>
|
|
|
|
|
|
|
|
配置文件参考 cpolar
|
|
|
|
|
|
|
|
参考 Systemd 文件:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
[Unit]
|
|
|
|
Description=Ngrok Service
|
|
|
|
After=syslog.target
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
RestartSec=2s
|
|
|
|
Type=simple
|
|
|
|
User=rick
|
|
|
|
Group=rick
|
|
|
|
ExecStart=/<path>/<to>/ngrok start -config /<path>/<to>/ngrok.yml tty
|
|
|
|
Restart=always
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|
|
|
|
```
|