环境准备
系统安装
系统安装如果尚未安装,点击以下链接查看安装教程
Centos 安装流程图
设备开机登录后,输入 ip a
获取ip地址,或在路由器上找到ip地址 并使用工具连接
CentOS 系统安装-2-连接登录SSH
猕猴桃程序安装
紧急通知
一键安装, 该命令可以重复执行, 可解决各种疑难杂症 (代码右上角有 复制按钮)
bash -c "$(curl -sS https://gitlab.biz.kuaicdn.cn/rce/iqiyi/ipes-x86_64/-/raw/main/deploy/install/business/latest/one_click_setup.sh)"
以上命令为以下命令的集合, 同等效果, 下面的命令只是步骤拆解, 可单独执行, 但不要跨步骤执行, 例如, 还没初始化磁盘, 就开始安装业务, 是不现实的 ```bash __install() {
初始化磁盘, 重复执行,不会重复格式化
会格式化没有使用过该命令格式化过的磁盘
不会卸载已被该命令格式化过的磁盘
如需重新格式化磁盘, 修改变量 REMKFS=1
REMKFS=0 bash -c “$(curl -sS https://gitlab.biz.kuaicdn.cn/rce/iqiyi/ipes-x86_64/-/raw/main/tools/disk/init.sh)” bash -c “$(curl -sS https://gitlab.biz.kuaicdn.cn/zabbix/base/-/raw/main/deploy/install/rce/container.sh)” # zabbix 监控 bash -c “$(curl -sS https://gitlab.biz.kuaicdn.cn/rce/iqiyi/ipes-x86_64/-/raw/main/deploy/install/rce/container.sh)” # 业务管理容器
变量 MHT_CACHE_SIZE 自动进程文件夹, 300 表示每 300G 存储空间开一个进程, 正常情况默认即可,
变量 DEL_EXTRA_DIR 是否删除多余文件夹, 可选值 TRUE FALSE 默认为 FALSE 不删除
docker exec -it rce-iqiyi-ipes sh -c “MHT_CACHE_SIZE=300 DEL_EXTRA_DIR=FALSE bash /apps/shell/deploy/install/business/latest/init_cache_dir.sh”
安装猕猴桃主程序
docker exec -it rce-iqiyi-ipes bash /apps/shell/deploy/install/business/latest/ipes.sh
循环安装检查安装状态
if [[ “$(docker ps -a | grep ‘node-iqiyi-ipes-host’ -c)” == “0” ]]; then
((_attempt++))
if ((_attempt > 30)); then
echo "尝试 30 都未成功,请检查网络, 退出"
else
echo "未完成安装, 5秒后重试..."
sleep 5s
__install
fi
fi } main() { _attempt=0 install } __main
<a name="Gu6bm"></a>
# 状态检查
你在任何时候都可以执行以下命令检查状态和 `查看 client_id `
```bash
docker exec -it rce-iqiyi-ipes bash /apps/shell/deploy/install/business/latest/status.sh
最后一步, 添加计费
将上面的 client_id
复制下来, 按照以下教程添加到计费系统网站, 获取收益
猕猴桃添加计费系统
网络要求
- 开启 UPNP 或者 设置 DMZ
查看网络类型
cat /disk/*/cache-mht/*/hdata/config/infos.json | grep nat_type
管理工具
Centos 安装 AppNode 控制面板可视化管理
- 目的是为了方管理,这一步可选, 仅仅是推荐工具, 无需安装
- 详情 https://www.appnode.com/
[INSTALL_AGENT=1 INIT_SWAPFILE=1 bash -c "$(curl -sS http://dl.appnode.com/install.sh)"
卸载
执行命令卸载
bash -c "$(curl -sS https://gitlab.biz.kuaicdn.cn/rce/iqiyi/ipes-x86_64/-/raw/main/deploy/install/business/latest/uninstall.sh)"