50% off 所有套餐限时优惠,起价 $2.48/mo
PocketBase

PocketBase

PocketBase 是一个单文件后端服务,将 SQLite、身份验证、实时功能和管理界面打包为一个 30 MB 的二进制文件。MIT 许可,使用 Go 编写,适合独立项目、移动应用后端和原型开发。无需任何基础设施,是 Firebase 的轻量替代方案。

Version

0.31.0

Operating System

Ubuntu Server 24.04 LTS

Min. RAM

1 GB

IP Types

IPV4,IPV6

Access

  • Dashboard: http://<SERVER_IP>/_/
  • REST API: http://<SERVER_IP>/api/

Superuser Credentials

您的凭据已安全存储于: /root/.cloudzy-creds

Service Management

systemctl restart pocketbase  # Restart
systemctl status pocketbase   # Check status

日志与故障排查

PocketBase 日志保存于: /root/pb/std.log

实时查看日志: tail -f /root/pb/std.log

Or via systemd: journalctl -u pocketbase -f

重要文件与目录

  • 主安装目录: /root/pb/
  • Main executable: /root/pb/pocketbase
  • 日志文件(stdout + stderr): /root/pb/std.log
  • 数据库与文件存储: /root/pb/pb_data/
  • Superuser credentials: /root/.cloudzy-creds
  • Systemd 服务定义: /lib/systemd/system/pocketbase.service
  • Nginx configuration: /etc/nginx/sites_available/pocketbase

通过域名启用 SSL

您已拥有 certbot installed.

Edit /etc/nginx/sites-available/pocketbaseand  Replace _ in server_name _; 替换为您的实际域名,例如:

server_name example.com;

请确保您的域名 DNS 记录指向服务器 IP。

Run:

certbot --nginx --non-interactive --agree-tos --email <your-email> -d <domain>

现在安全访问 PocketBase:

https://<domain>/_/

 

更多数据库工具

Related apps.

立即部署 PocketBase。 From $2.48/mo.