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>/_/