- 不想用ROOT运行AGENT,官方文档写的方法不够高效,自己用AI撸了一个
- 使用配置文件持久运行,重启自启动,自动生成配置文件或获取远程配置文件
- 使用 systemctl --user 建立守护进程和自动更新配置文件
- 使用 loginctl enable-linger ${USER} 安装运行在普通用户权限下,默认禁用远程控制(web ssh&rce)
本地配置文件运行
bash <(curl -sL komari.app) -c config.json远程配置文件运行
bash <(curl -sL komari.app) -c komari.app/config远程配置文件运行并设置自动定时更新配置文件
bash <(curl -sL komari.app) --auto 10 -c komari.app/configcurl 自动发现
bash <(curl -sL komari.app) -e URL -a KEYcurl 指定TOKEN
bash <(curl -sL komari.app) -e URL -t TOKENwget 自动发现
bash <(wget -qO- komari.app) -e URL -a KEYwget 指定TOKEN
bash <(wget -qO- komari.app) -e URL -t TOKEN完整参数
Usage: kai.sh [options]Options: -c <path|url> Local config file or remote URL for installation. -a <value> Override auto_discovery_key. -t <value> Override token. -e <url> Override endpoint URL http(s). -log Tail service status and last 50 log lines in real time. --auto [min|d] Enable auto config updates (default 10 min) or disable with 'd'. --debug Enable verbose execution trace. -u, --uninstall Stop services/cron and remove installation directory.Examples: bash kai.sh -c ./config.json bash kai.sh -a KEY -e URL bash kai.sh -t TOKEN -e URL bash kai.sh -c http(s)://example.com/config.json --auto 10
评论 (0)