BtSoft (BaoTa) Panel Guide
Install BtSoft, host LNMP sites with a GUI, configure SSL/cron/firewall, and know exactly where it helps and where it hurts.
What a panel gives you and costs you
BtSoft turns the whole LNMP stack (Nginx/MySQL/PHP) into clickable forms: install in 2 minutes, add a site, apply free SSL, set cron, view traffic graphs. The price is a layer of magic between you and the configs — when it breaks, you debug someone else's template.
| Shines at | Struggles with |
|---|---|
| 单机建站、PHP 生态、快速上线 | 多节点/集群编排(它只管一台机器) |
| 免费 SSL 一键申请与自动续期 | 非标准目录结构,排障要反查它的生成规则 |
| 文件管理、数据库可视化、定时任务 | 插件市场付费功能多,免费版功能受限 |
| 监控/日志/备份开箱即用 | 面板自身漏洞=整机 Control Plane 被端(务必开启安全入口+限制 IP) |
Installation and the LNMP stack
# 官方安装脚本(CentOS/openEuler 系)
wget -O install.sh https://download.bt.cn/install/install_lts.sh && bash install.sh ed8484bec
# Ubuntu/Debian
wget -O install.sh https://download.bt.cn/install/install-ubuntu_6.0.sh && sudo bash install.sh ed8484bec
# 安装完成后记住四样东西:
# 面板地址 / username / password / 安全入口路径
# 然后第一时间做这两件事:
# 1) 修改默认面板端口与安全入口
# 2) 绑定面板访问 IP(或之后配 IP 白名单)
Inside the panel: Software Store → install the Nginx + MySQL + PHP versions you need (LNMP one-click). PHP extension choices (redis, pdo_mysql, bcmath, exif) are per-site configurable.
Site, SSL, reverse proxy
- Add site: domain + root dir + PHP version; DNS A record to this server first, or the free SSL application fails domain validation
- SSL: site settings → SSL → Lets Encrypt, one click, auto-renewal handled by the panel cron
- Reverse proxy: site settings → Reverse Proxy, add proxy target http://127.0.0.1:8080 — perfect for a Java/Go backend behind Nginx
- Deploy your backend service via systemd unit (panel has a 'Daemon' tool) and memory/CPU limits in the process manager
# 典型拓扑:Java Spring Boot 站点
公网 443 → Nginx(宝塔LNMP)
├─ 静态资源 /var/www/site/dist
└─ 反向代理 api/ → http://127.0.0.1:8080
└─ jar 由面板守护进程跑(systemd 单元)
Cron, backup and firewalls
Cron in the panel wraps crontab with forms: scheduled site/db backup to local disk or cloud storage (the panel supports COS/OSS/S3), log rotation, and lets you paste raw shell scripts too.
# 防火墙:面板 Security → 放行端口(=云安全组 + firewalld 双层)
# 只放:面板端口(改过后的)、80、443、SSH 端口
# 数据库 3306、Redis 6379 一律不放公网
# 面板自带数据库权限管理:root 只允许 127.0.0.1,
# 应用账号按库授权,密码用强随机串面板给你什么、收走什么
宝塔把整套 LNMP(Nginx/MySQL/PHP)变成表单:2 分钟装好、加站点、申请免费 SSL、设定时任务、看流量图。代价是你和真实配置之间多了一层魔法——它出问题时,你要调试的是别人的模板。
| 优势 | 短板 |
|---|---|
| 单机建站、PHP 生态、快速上线 | 多节点/集群编排(它只管一台机器) |
| 免费 SSL 一键申请与自动续期 | 非标准目录结构,排障要反查它的生成规则 |
| 文件管理、数据库可视化、定时任务 | 插件市场付费功能多,免费版功能受限 |
| 监控/日志/备份开箱即用 | 面板自身漏洞=整机 Control Plane 被端(务必开启安全入口+限制 IP) |
安装与 LNMP 环境
# 官方安装脚本(CentOS/openEuler 系)
wget -O install.sh https://download.bt.cn/install/install_lts.sh && bash install.sh ed8484bec
# Ubuntu/Debian
wget -O install.sh https://download.bt.cn/install/install-ubuntu_6.0.sh && sudo bash install.sh ed8484bec
# 安装完成后记住四样东西:
# 面板地址 / username / password / 安全入口路径
# 然后第一时间做这两件事:
# 1) 修改默认面板端口与安全入口
# 2) 绑定面板访问 IP(或之后配 IP 白名单)
进入面板:软件商店 → 按需安装 Nginx + MySQL + PHP 版本(一键 LNMP)。PHP 扩展(redis、pdo_mysql、bcmath、exif)可按站点单独配置。
建站、SSL 与反向代理
- 添加站点:填域名+根目录+PHP 版本;先把 DNS A 记录解析到本机,否则免费 SSL 的域名验证会失败
- SSL:站点设置 → SSL → Lets Encrypt,一键申请,自动续期由面板定时任务处理
- 反向代理:站点设置 → 反向代理,填代理目标 http://127.0.0.1:8080——让 Java/Go 后端躲在 Nginx 后面
- 后端服务用 systemd unit 常驻(面板有「进程管理器/守护进程」工具),可做内存/CPU 限制
# 典型拓扑:Java Spring Boot 站点
公网 443 → Nginx(宝塔LNMP)
├─ 静态资源 /var/www/site/dist
└─ 反向代理 api/ → http://127.0.0.1:8080
└─ jar 由面板守护进程跑(systemd 单元)
定时任务、备份与防火墙
面板的计划任务就是把 crontab 做成表单:定时备份网站/数据库到本地或云存储(面板支持 COS/OSS/S3)、日志切割,也可以直接粘贴 shell 脚本。
# 防火墙:面板 Security → 放行端口(=云安全组 + firewalld 双层)
# 只放:面板端口(改过后的)、80、443、SSH 端口
# 数据库 3306、Redis 6379 一律不放公网
# 面板自带数据库权限管理:root 只允许 127.0.0.1,
# 应用账号按库授权,密码用强随机串