访问
- 仪表板:
http://<SERVER_IP>/_/ - REST API:
http://<SERVER_IP>/api/
超级用户凭证
您的凭据已安全存储于: /root/.cloudzy-creds
服务管理
systemctl restart pocketbase # Restart
systemctl status pocketbase # Check status
日志与故障排查
PocketBase 日志保存于: /root/pb/std.log
实时查看日志: tail -f /root/pb/std.log
或通过 systemd: journalctl -u pocketbase -f
重要文件与目录
- 主安装目录:
/root/pb/ - 主程序:
/root/pb/pocketbase - 日志文件(stdout + stderr):
/root/pb/std.log - 数据库与文件存储:
/root/pb/pb_data/ - 超级用户凭据:
/root/.cloudzy-creds - Systemd 服务定义:
/lib/systemd/system/pocketbase.service - Nginx 配置:
/etc/nginx/sites_available/pocketbase
通过域名启用 SSL
您已拥有 certbot 已安装。
编辑 /etc/nginx/sites-available/pocketbase和 替换 _ in server_name _; 替换为您的实际域名,例如:
server_name example.com;
请确保您的域名 DNS 记录指向服务器 IP。
运行:
certbot --nginx --non-interactive --agree-tos --email <your-email> -d <domain>
现在安全访问 PocketBase:
https://<domain>/_/