Closed ssd2077 closed 5 months ago
参照docker版,做个systemd,ip:127.0.0.1 ,端口5002,不要--tls ,就直接内网不绕到argo和公网了
感谢
举个例子,我的是这样的 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
成功了。十分感谢
求助