研究了下 其实挺简单 dsm7的群晖 启动项管理 变成了 systemd 路径在 /usr/lib/systemd/system/ 那么就简单了 ssh登陆群晖 然后切换成root sudo -s cd /volume1/@apphome mkdir NezhaAgent // 这里得注意 下载你群晖对应架构的agent wget https://github.com/naiba/nezha/releases/download/v0.12.3/nezha-agent_linux_amd64.tar.gz tar -zxvf nezha-agent_linux_amd64.tar.gz chmod +x nezha-agent 下面就设置systemd脚本 vim /usr/lib/systemd/system/nezha-agent.service #下面是systemd脚本 [Unit] Description=Nezha Agent After=syslog.target #After=network.target #After=nezha-dashboard.service [Service] # Modify these two values and uncomment them if you have # repos with lots of files and……

Continue reading