CentOS7 - Rippled

Install and run

Taken from: https://xrpl.org/install-rippled-on-centos-rhel-with-yum.html

# vim /etc/yum.repos.d/ripple.repo
[ripple-stable]
name=XRP Ledger Packages
enabled=1
gpgcheck=0
repo_gpgcheck=1
baseurl=https://repos.ripple.com/repos/rippled-rpm/stable/
gpgkey=https://repos.ripple.com/repos/rippled-rpm/stable/repodata/repomd.xml.key

# yum -y install rippled

# systemctl daemon-reload
# systemctl enable rippled.service
# systemctl start rippled.service

Check if running correctly:

# tail -f /var/log/rippled/debug.log

# /opt/ripple/bin/rippled server_info | grep server_state

Server state:
- syncing -> The server is currently behind on ledger versions. (It is normal for a server to spend a few minutes catching up after you start it.)
- connected -> Server is correctly connected to the network

Set up automatic updates

Check if rippled cron file is present:

# ls -la /opt/ripple/etc/update-rippled-cron

Create symlink to it:

# ln -s /opt/ripple/etc/update-rippled-cron /etc/cron.d/

Cronjob to restart server on monday morning:

# crontab -e

33 6 * * 1 systemctl restart rippled.service

Check API

# curl -X POST -H 'Content-Type: application/json' -d '{"method":"server_info","params":[{"api_version":1}]}' localhost:5005

Allow access in firewall

# firewall-cmd --zone=trusted --add-port=5005/tcp --permanent
# firewall-cmd --reload

doublecheck above