Skip to content

TiaraBasori/InstallTeleBox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

TeleBox 一键安装脚本

项目简介

TeleBox 是一个现代化的 Telegram Bot 框架,基于 Node.js 开发,提供丰富的功能和易于使用的接口。

本脚本简化了 TeleBox 的部署过程,自动完成以下步骤:

  • ✅ 系统环境检测和依赖安装
  • ✅ Node.js 20.x 自动安装
  • ✅ TeleBox 项目下载和配置
  • ✅ 依赖包自动安装
  • ✅ Telegram 账号登录配置
  • ✅ PM2 进程守护和服务自启动

系统要求

  • 操作系统: Ubuntu, Debian, CentOS 等主流 Linux 发行版
  • 内存: 至少 512MB RAM
  • 存储: 至少 1GB 可用空间

一键安装命令

安装到本地

wget https://raw.githubusercontent.com/TiaraBasori/InstallTeleBox/refs/heads/main/telebox.sh -O telebox.sh && chmod +x telebox.sh && bash telebox.sh

安装到Docker容器内

Docker版本脚本作者: github.com/Seikolove

wget https://raw.githubusercontent.com/TiaraBasori/InstallTeleBox/refs/heads/main/docker_telebox.sh -O docker_telebox.sh && chmod +x docker_telebox.sh && bash docker_telebox.sh

安装后管理

安装完成后,您可以使用以下命令管理 TeleBox 服务:

# 查看服务状态
pm2 status telebox

# 查看实时日志
pm2 logs telebox

# 重启服务
pm2 restart telebox

# 停止服务
pm2 stop telebox

注意事项

  1. 安装前请确保服务器可以正常访问 GitHub 和 Telegram 服务
  2. 需要提前准备好 Telegram API ID 和 Hash , 申请地址:https://my.telegram.org/auth?to=apps
  3. 建议使用非 root 用户运行安装脚本
  4. 登录过程中请按照提示操作

故障排除

如果安装过程中遇到问题:

  1. 查看安装日志获取详细错误信息
  2. 在Telegram私聊我

项目地址: TeleBoxDev/TeleBox
脚本维护: TiaraBasori/InstallTeleBox

About

一个适用于Linux shell的简单Telebox安装脚本.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages