- Go环境配置
123456789wget https://dl.google.com/go/go1.17.6.linux-amd64.tar.gztar -zxvf go1.17.6.linux-amd64.tar.gz -C /usr/localnano /etc/profile#添加以下内容export PATH=$PATH:/usr/local/go/bin#重载生效source /etc/profile - 编译chihaya
12345678#编译git clone https://github.com/chihaya/chihaya.gitcd chihayago build ./cmd/chihayamv chihaya /usr/bin#按自己需求修改相关配置mv ./dist/example_config.yaml /etc/chihaya.yamlcd .. - 创建chihaya服务
123456789101112131415cat <<EOF >/etc/systemd/system/chihaya.service[Unit]Description=chihaya server[Service]User=rootExecStart=/usr/bin/chihaya --config /etc/chihaya.yamlRestart=on-abortLimitCORE=infinityLimitNOFILE=infinityLimitNPROC=infinity[Install]WantedBy=multi-user.targetEOF - 启动chihaya服务
12systemctl enable /etc/systemd/system/chihaya.servicesystemctl start chihaya - 常用命令
123systemctl status chihaya #查看服务状态systemctl stop chihaya #停止服务systemctl restart chihaya #重启服务 - 备注
- 制作种子时填入http://IP:6969/announce或udp://IP:6969/announce 也可以做好解析后把IP换成域名
- 自带统计地址http://IP:6880
来源详情: chihaya