fscarmen2 / Argo-Nezha-Service-Container

Nezha server over Argo tunnel 使用 Argo 隧道的哪吒服务端
671 stars 407 forks source link

宿主机安装模式下,如何让面板机在安装agent后,面板机的agent直接走本地传输。 #100

Closed ssd2077 closed 5 months ago

ssd2077 commented 6 months ago

求助

fscarmen2 commented 6 months ago

参照docker版,做个systemd,ip:127.0.0.1 ,端口5002,不要--tls ,就直接内网不绕到argo和公网了

ssd2077 commented 6 months ago

感谢

fscarmen2 commented 5 months ago

举个例子,我的是这样的 cat /etc/systemd/system/nezha-local.service

[Unit]
Description=哪吒探针监控端
ConditionFileIsExecutable=/opt/nezha/agent/nezha-agent

[Service]
StartLimitInterval=5
StartLimitBurst=10
ExecStart=/opt/nezha/agent/nezha-agent "-s" "127.0.0.1:5002" "-p" "IvN23sxS8bemPIg7L7"
WorkingDirectory=/root
Restart=always
RestartSec=120
EnvironmentFile=-/etc/sysconfig/nezha-agent

[Install]
WantedBy=multi-user.target
ssd2077 commented 5 months ago

成功了。十分感谢