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
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
sudo apt install postgresql postgresql-contribEnable PostgreSQL service for automatic startup
sudo systemctl enable postgresqlStart PostgreSQL service
sudo systemctl start postgresqlConnect to PostgreSQL console as postgres user
sudo -u postgres psqlCreate Cardano database user with password
CREATE USER cardano WITH PASSWORD 'PASSWORD';Use a strong, secure password
Create Cardano Explorer database
CREATE DATABASE cexplorer OWNER cardano;Grant all privileges for the database
GRANT ALL PRIVILEGES ON DATABASE cexplorer TO cardano;Switch to cardano user account
sudo -i -u cardanoClone Cardano DB Sync repository
git clone https://github.com/IntersectMBO/cardano-db-sync.gitChange to cardano-db-sync directory
cd cardano-db-sync/List available version tags
git tag | sort -VSwitch to specific version tag
git switch -d tags/13.6.0.5Install Cardano DB Sync with NIX
nix profile install .This installation may take some time
Create PostgreSQL password file
Set file permissions for security
chmod 600 ~/cardano-config/.pgpassCreate system-wide symbolic link
sudo ln -sf /home/cardano/.nix-profile/bin/cardano-db-sync /usr/local/bin/cardano-db-syncCreate systemd service configuration file
Reload systemd for new service
sudo systemctl daemon-reloadEnable service for automatic startup
sudo systemctl enable cardano-db-syncStart Cardano DB Sync service
sudo systemctl start cardano-db-syncCheck service status
sudo systemctl status cardano-db-syncFollow service logs in real-time
journalctl -u cardano-db-sync -fZousä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.