如需部署帮助、功能定制、问题反馈,请联系作者:
- 👤 Telegram:@lxfcx6
- 💬 联系方式:
@lxfcx6 - 🧩 项目作者:LXFCX
这里整理项目常用命令,包括:
- 🤖 Telegram 机器人安装 / 更新 / 卸载
- 🌐 Web 面板安装 / 更新 / 卸载
- 📡 探针安装 / 管理
- 🔄 服务启动 / 重启 / 查看状态
- 🧾 Telegram 常用操作命令
bash <(curl -fsSL https://raw.githubusercontent.com/lxfcx/Oracle/main/install.sh)运行后会出现菜单:
1) 安装 / 更新机器人
2) 编辑 BOT_TOKEN 和 ADMIN_IDS
0) 卸载机器人并清理所有数据
3) 退出脚本
BOT_TOKEN="你的TG_BOT_TOKEN" ADMIN_IDS="你的TG数字ID" AUTO_INSTALL=1 bash <(curl -fsSL https://raw.githubusercontent.com/lxfcx/Oracle/main/install.sh)bash <(curl -fsSL https://raw.githubusercontent.com/lxfcx/Oracle/main/install_web.sh)Web 面板默认访问地址:
http://服务器公网IP:8899
cd /opt/server-monitor-bot
URL="https://raw.githubusercontent.com/lxfcx/Oracle/main/bot.py"
curl -fL "$URL" -o /tmp/bot.py.new && \
python3 -m py_compile /tmp/bot.py.new && \
mv /tmp/bot.py.new /opt/server-monitor-bot/bot.py && \
chmod +x /opt/server-monitor-bot/bot.py && \
systemctl restart server-monitor-bot && \
systemctl status server-monitor-bot --no-pager -lcd /opt/server-monitor-bot
URL="https://raw.githubusercontent.com/lxfcx/Oracle/main/web_dashboard.py"
curl -fL "$URL" -o /tmp/web_dashboard.py.new && \
python3 -m py_compile /tmp/web_dashboard.py.new && \
mv /tmp/web_dashboard.py.new /opt/server-monitor-bot/web_dashboard.py && \
chmod +x /opt/server-monitor-bot/web_dashboard.py && \
systemctl restart server-monitor-web && \
systemctl status server-monitor-web --no-pager -l在远程服务器执行:
systemctl stop server-monitor-agent 2>/dev/null || true
bash <(curl -fsSL https://raw.githubusercontent.com/lxfcx/Oracle/main/agent.sh)推荐从 Telegram 或 Web 的服务器详情页复制完整探针部署命令执行。
bash <(curl -fsSL https://raw.githubusercontent.com/lxfcx/Oracle/main/uninstall.sh)也可以运行安装脚本菜单卸载:
bash <(curl -fsSL https://raw.githubusercontent.com/lxfcx/Oracle/main/install.sh)选择:
0) 卸载机器人并清理所有数据
然后输入:
YES
bash <(curl -fsSL https://raw.githubusercontent.com/lxfcx/Oracle/main/uninstall_web.sh)在远程服务器执行:
systemctl disable --now server-monitor-agent 2>/dev/null || true
rm -f /etc/systemd/system/server-monitor-agent.service
rm -rf /opt/server-monitor-agent
systemctl daemon-reloadsystemctl status server-monitor-bot --no-pager -lsystemctl restart server-monitor-botjournalctl -u server-monitor-bot -n 120 --no-pagerjournalctl -u server-monitor-bot -fsystemctl status server-monitor-web --no-pager -lsystemctl restart server-monitor-webjournalctl -u server-monitor-web -n 120 --no-pagerjournalctl -u server-monitor-web -fsystemctl status server-monitor-agent --no-pager -lsystemctl restart server-monitor-agentjournalctl -u server-monitor-agent -n 120 --no-pagerjournalctl -u server-monitor-agent -f主控服务器需要放行探针上报端口:
ufw allow 8765/tcp 2>/dev/null || true
iptables -I INPUT -p tcp --dport 8765 -j ACCEPT 2>/dev/null || true测试主控探针接口:
curl -s http://127.0.0.1:8765/health正常返回:
{"ok": true, "service": "server-monitor-metrics"}Web 面板默认端口:
8899/tcp
放行 Web 面板端口:
ufw allow 8899/tcp 2>/dev/null || true
iptables -I INPUT -p tcp --dport 8899 -j ACCEPT 2>/dev/null || true测试 Web 面板:
curl -I http://127.0.0.1:8899启用命令
服务器总览
查看服务器
查看状态
添加服务器
查看事件
检测服务器
刷新本机地区
刷新全部地区
添加服务器
名称: HK-Oracle
主机: 1.2.3.4
备注: 香港甲骨文 免费机器
系统: Ubuntu 22.04
周期: 年付
价格: 0
币种: USD
到期: 2026-08-01
检测端口: 22
自动续费: 是
添加服务器
名称: Oracle-Free
主机: 1.2.3.4
备注: 永久免费机器
永久免费: 是
检测端口: 22
编辑名称 1 HK-Oracle
编辑IP 1 1.2.3.4
编辑备注 1 香港甲骨文主力机
编辑系统 1 Ubuntu 22.04
编辑端口 1 443
编辑价格 1 50 CNY
编辑周期 1 年付
编辑到期 1 2027-05-01
编辑永久 1 是
编辑永久 1 否
编辑自动续费 1 是
编辑自动续费 1 否
编辑本机名称 Oracle主控机
编辑本机备注 新加坡主控节点
编辑本机价格 38 CNY
编辑本机周期 年付
编辑本机到期 2027-05-01
续费服务器 1 2027-05-01
本机续费 2027-05-01
设置CPU阈值 1 90
设置内存阈值 1 85
设置硬盘阈值 1 80
Web 面板支持:
- 📊 服务器总览
- 🖥 所有服务器
- 🔳 卡片视图
- 📋 表格视图
- 🧾 事件记录
- ⚙️ 系统设置
- 🖼 上传背景图
- 🎨 上传主题 ZIP
- 🏷 修改平台名称
- 🌐 上传浏览器标签图标
- 📨 测试 Telegram 推送
- 📡 复制探针部署命令
Oracle/
├── bot.py # Telegram 机器人主程序
├── agent.sh # 远程服务器探针脚本
├── install.sh # 机器人安装 / 更新 / 卸载脚本
├── uninstall.sh # 机器人卸载脚本
├── web_dashboard.py # Web 面板程序
├── install_web.sh # Web 面板安装 / 更新脚本
├── uninstall_web.sh # Web 面板卸载脚本
└── README.md # 项目说明文档
如果同时更新机器人、Web 面板和探针,建议顺序:
- 更新
bot.py - 更新
agent.sh - 更新
web_dashboard.py - 重启机器人
- 重启 Web 面板
- 远程服务器重新部署探针
重启命令:
systemctl restart server-monitor-bot
systemctl restart server-monitor-web