mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-05 04:15:50 +00:00
Add rippled auto-update instructions
This commit is contained in:
@@ -108,8 +108,33 @@ It can take several minutes for `rippled` to sync with the rest of the network,
|
||||
|
||||
## Updating rippled ##
|
||||
|
||||
### Automatic ###
|
||||
|
||||
Automatic rippled updates can be enabled with a one-time Cron configuration:
|
||||
|
||||
1. Check that `/opt/ripple/bin/update-rippled.sh` exists. If it does not, perform a [manual update](#manual).
|
||||
|
||||
2. Install `crond`:
|
||||
|
||||
$ sudo yum install cronie
|
||||
|
||||
3. Open the crontab file for editing
|
||||
|
||||
$ sudo crontab -e
|
||||
|
||||
4. Add the following to the crontab file. Be sure to add a blank line at the end of the file.
|
||||
|
||||
RANDOM_DELAY=59
|
||||
0 * * * * /opt/ripple/bin/update-rippled.sh
|
||||
|
||||
|
||||
The installed `rippled` package will be updated within an hour of a new release.
|
||||
|
||||
### Manual ###
|
||||
|
||||
Run the following commands to update to the latest release of `rippled`:
|
||||
|
||||
$ sudo rpm -Uvh --replacepkgs https://mirrors.ripple.com/ripple-repo-el7.rpm
|
||||
$ sudo yum update --enablerepo=ripple-stable rippled
|
||||
$ sudo systemctl daemon-reload
|
||||
$ sudo service rippled restart
|
||||
@@ -130,7 +155,7 @@ Running a `rippled` validator that participates in the Consensus process is simp
|
||||
|
||||
## Validator Setup ##
|
||||
|
||||
1. [Install and configure a `rippled` server.](#installing-rippled)
|
||||
1. [Install a `rippled` server.](#installing-rippled)
|
||||
|
||||
2. Start `rippled`:
|
||||
|
||||
|
||||
@@ -218,8 +218,34 @@
|
||||
<pre><code> $ /opt/ripple/bin/rippled --conf /opt/ripple/etc/rippled.cfg <command>
|
||||
</code></pre>
|
||||
<h2 id="updating-rippled">Updating rippled</h2>
|
||||
<h3 id="automatic">Automatic</h3>
|
||||
<p>Automatic rippled updates can be enabled with a one-time Cron configuration:</p>
|
||||
<ol>
|
||||
<li>
|
||||
<p>Check that <code>/opt/ripple/bin/update-rippled.sh</code> exists. If it does not, perform a <a href="#manual">manual update</a>.</p>
|
||||
</li>
|
||||
<li>
|
||||
<p>Install <code>crond</code>:</p>
|
||||
<pre><code>$ sudo yum install cronie
|
||||
</code></pre>
|
||||
</li>
|
||||
<li>
|
||||
<p>Open the crontab file for editing</p>
|
||||
<pre><code>$ sudo crontab -e
|
||||
</code></pre>
|
||||
</li>
|
||||
<li>
|
||||
<p>Add the following to the crontab file. Be sure to add a blank line at the end of the file.</p>
|
||||
<pre><code>RANDOM_DELAY=59
|
||||
0 * * * * /opt/ripple/bin/update-rippled.sh
|
||||
</code></pre>
|
||||
</li>
|
||||
</ol>
|
||||
<p>The installed <code>rippled</code> package will be updated within an hour of a new release.</p>
|
||||
<h3 id="manual">Manual</h3>
|
||||
<p>Run the following commands to update to the latest release of <code>rippled</code>:</p>
|
||||
<pre><code> $ sudo yum update --enablerepo=ripple-stable rippled
|
||||
<pre><code> $ sudo rpm -Uvh --replacepkgs https://mirrors.ripple.com/ripple-repo-el7.rpm
|
||||
$ sudo yum update --enablerepo=ripple-stable rippled
|
||||
$ sudo systemctl daemon-reload
|
||||
$ sudo service rippled restart
|
||||
</code></pre>
|
||||
@@ -240,7 +266,7 @@
|
||||
<h2 id="validator-setup">Validator Setup</h2>
|
||||
<ol>
|
||||
<li>
|
||||
<p><a href="#installing-rippled">Install and configure a <code>rippled</code> server.</a></p>
|
||||
<p><a href="#installing-rippled">Install a <code>rippled</code> server.</a></p>
|
||||
</li>
|
||||
<li>
|
||||
<p>Start <code>rippled</code>:</p>
|
||||
|
||||
Reference in New Issue
Block a user