Linux - Cardano DB Sync Installation
Komplett Uleedung fir Cardano DB Sync op Debian 12 ze installéieren mat PostgreSQL-Datebank a NIX-Paketmanager, inklusiv Service-Konfiguratioun
Debian 12Cardano DB SyncPostgreSQLNIXBlockchainDatabase
Wichteg Hiweiser
Bedenkt dës wichteg Punkten virum Setup
Cardano Node
Eng lafend Cardano-Node ass erfuerderlech fir DB Sync
Späicherplaz
Op d'mannst 700GB fräie Späicherplaz (Cardano Node: 203GB, DB Sync: 10GB, PostgreSQL: 438GB)
RAM-Bedarf
Op d'mannst 48GB RAM (Cardano Node: 24GB, DB Sync: 21GB, System: 3GB)
Synchronisatiounszäit
Éischt Synchronisatioun kann e puer Deeg daueren
Root-Zougang
Root-Zougang oder sudo-Berechtegung erfuerderlech
Setup Schrëtt
Install PostgreSQL and additional extensions
Enable PostgreSQL service for automatic startup
Start PostgreSQL service
Connect to PostgreSQL console as postgres user
Create Cardano database user with password
Note: Use a strong, secure password
Create Cardano Explorer database
Grant all privileges for the database
Exit PostgreSQL console
Switch to cardano user account
Clone Cardano DB Sync repository
List files in cardano directory
Change to cardano-db-sync directory
List available version tags
Switch to specific version tag
Install Cardano DB Sync with NIX
Note: This installation may take some time
Verify installation by checking version
List installed NIX profiles
~/cardano-config/.pgpass.pgpass
Set file permissions for security
Exit cardano user account
Create system-wide symbolic link
Test symbolic link by checking version
/etc/systemd/system/cardano-db-sync.servicecardano-db-sync.service
Reload systemd for new service
Enable service for automatic startup
Start Cardano DB Sync service
Check service status
Follow service logs in real-time
Zousätzlech Tipps
Nëtzlech Kommandoen an Tipps fir besser Gestioun
Zousätzlech Ressourcen
Offiziell Dokumentatioun an hëllefräich Linken
Cardano DB Sync Installation ofgeschloss!
Är Cardano DB Sync leeft elo a synchroniséiert Blockchain-Donnéeën an d'PostgreSQL-Datebank. Iwwerwaacht reegelméisseg d'Logs an de Synchronisatiounsfortschrëtt.