26 lines
400 B
Markdown
26 lines
400 B
Markdown
|
# Ngrok 设置和使用
|
||
|
|
||
|
官网和下载地址:<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
|
||
|
```
|