ngrok[14746]: 错误使用: 提供了但未定义的标志: -domain

ngrok[14746]: 错误使用: 提供了但未定义的标志: -domain

我正在尝试按照以下链接在 Kali Linux 中创建 ngrok 服务:https://amito.me/2016/09/Building-Your-Own-Ngrok-Service-on-CentOS-7/

leafpad /usr/lib/systemd/system/ngrok.service

[Unit]
Description=ngrok server service
After=syslog.target network.target auditd.service

[Service]
Type=simple
User=root

ExecStart=/path/to/ngrok/bin/ngrok -domain=127.0.0.1 -httpAddr=:8000 -httpsAddr=:4443

KillMode=process
Restart=on-failure

[Install]
WantedBy=multi-user.target

一切工作正常,但是当我启动时它没有抛出任何错误,而是查询其状态:

systemctl status ngrok.service
● ngrok.service - ngrok server service
   Loaded: loaded (/usr/lib/systemd/system/ngrok.service; enabled; vendor preset: disabled)
   Active: inactive (dead) since Mon 2018-05-28 01:33:21 +0430; 8min ago
  Process: 14746 ExecStart=/home/linux/Downloads/ngrok-stable-linux-amd64/ngrok -domain=127.0.0.1 -httpAddr=:8000 -httpsAddr=:4443 (code=exited, statu
 Main PID: 14746 (code=exited, status=0/SUCCESS)

May 28 01:33:21 Linux ngrok[14746]:    authtoken        save authtoken to configuration file
May 28 01:33:21 Linux ngrok[14746]:    credits        prints author and licensing information
May 28 01:33:21 Linux ngrok[14746]:    http                start an HTTP tunnel
May 28 01:33:21 Linux ngrok[14746]:    start        start tunnels by name from the configuration file
May 28 01:33:21 Linux ngrok[14746]:    tcp                start a TCP tunnel
May 28 01:33:21 Linux ngrok[14746]:    tls                start a TLS tunnel
May 28 01:33:21 Linux ngrok[14746]:    update        update ngrok to the latest version
May 28 01:33:21 Linux ngrok[14746]:    version        print the version string
May 28 01:33:21 Linux ngrok[14746]:    help                Shows a list of commands or help for one command
May 28 01:33:21 Linux ngrok[14746]: Incorrect Usage: flag provided but not defined: -domain

请指教

此致

答案1

ngrok没有名为 的参数-domain。您很可能指的是-hostname

相关内容