<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Частые вопросы по использованию Full node Level A]]></title><description><![CDATA[<p dir="auto"><strong>0. Как установить ноду Level А</strong><br />
Полная обновляемая инструкция тут <a href="https://github.com/smartholdem/smartholdem-node-a" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/smartholdem/smartholdem-node-a</a></p>
<p dir="auto">копипаст в помощь</p>
<p dir="auto"><strong>1. Как обновить ноду до последней версии:</strong><br />
отдельная инструкция тут <a href="https://community.smartholdem.io/topic/367/%D0%BE%D0%B1%D0%BD%D0%BE%D0%B2%D0%BB%D0%B5%D0%BD%D0%B8%D0%B5-node-a-v-0-1-3">https://community.smartholdem.io/topic/367/обновление-node-a-v-0-1-3</a></p>
<p dir="auto">В папке smartholdem-node-a выполнить команды</p>
<pre><code>forever stop app.js
git checkout -p
</code></pre>
<p dir="auto">здесь соглашаемся с изменениями <strong>y</strong></p>
<pre><code>git pull
npm install
</code></pre>
<p dir="auto">Заново прописать секретную фразу в <em>config.smartholdem.json</em></p>
<p dir="auto"><strong>upd</strong>: возможно прописать секретную фразу #1 в отдельный файл <em>secret.json</em></p>
<p dir="auto">Запуск через forever (при перезагрузке сервера не возобновляется)</p>
<pre><code>forever start app.js --config config.smartholdem.json --genesis genesisBlock.smartholdem.json
</code></pre>
<hr />
<p dir="auto"><strong>2. Как сделать дамп блокчейн</strong></p>
<pre><code>pg_dump sth_smartholdem &gt; sth_smartholdem.bk
</code></pre>
<hr />
<p dir="auto"><strong>3. Восстановить блокчейн из дампа</strong></p>
<pre><code>dropdb sth_smartholdem
createdb sth_smartholdem
psql sth_smartholdem &lt; sth_smartholdem.bk
</code></pre>
<hr />
<p dir="auto"><strong>4. Автозагрузка ноды (работающий вариант)</strong><br />
доп инфо <a href="https://github.com/Unitech/pm2" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/Unitech/pm2</a></p>
<pre><code>cd smartholdem-node-a
git pull
npm install pm2 -g
pm2 start app.js
</code></pre>
<p dir="auto">после этой команды сгенерируется необходимая команда для выполнения в консоли</p>
<pre><code>pm2 startup
pm2 save
</code></pre>
<p dir="auto">результат команды примерно следующий: sudo env PATH=$PATH:/home/&lt;USER&gt;/.nvm/versions/node/v6.9.5/bin /home/&lt;USER&gt;/.nvm/versions/node/v6.9.5/lib/node_modules/pm2/bin/pm2 startup systemd -u smartholdem --hp /home/smartholdem</p>
<p dir="auto">выполнить сгенерированную команду и перезагрузить</p>
<pre><code>sudo reboot
</code></pre>
<p dir="auto">после проверить работу ноды</p>
<pre><code>cd smartholdem-node-a
bash console.sh
</code></pre>
<p dir="auto">статус процесса pm2</p>
<pre><code>pm2 status
</code></pre>
<p dir="auto">остановить с id=0</p>
<pre><code>pm2 stop 0
</code></pre>
<p dir="auto">удалить процесс, если других нет, id обычно 0</p>
<pre><code>pm2 kill &lt;id&gt;
</code></pre>
<hr />
<p dir="auto"><strong>5. Супер быстрая синхронизация ноды с нуля через снапшот</strong></p>
<pre><code>cd smartholdem-node-a
sh firststart.sh
</code></pre>
<p dir="auto"><strong>6. Мониторинг сервера</strong></p>
<p dir="auto">1 из вариантов использвоние <a href="https://pm2.io/" target="_blank" rel="noopener noreferrer nofollow ugc">https://pm2.io/</a> совместно с модулем pm2<br />
в бесплатнмо режиме до 4х серверов</p>
<p dir="auto"><img src="/assets/uploads/files/1533414443089-monitor-resized.jpg" alt="0_1533414441217_monitor.jpg" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.smartholdem.io/topic/21/частые-вопросы-по-использованию-full-node-level-a</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Jul 2026 07:01:09 GMT</lastBuildDate><atom:link href="https://community.smartholdem.io/topic/21.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 19 Dec 2017 22:45:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Частые вопросы по использованию Full node Level A on Mon, 06 Aug 2018 14:01:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.smartholdem.io/uid/47">@stil99</a> По автозагрузке ноды см п.4</p>
<p dir="auto">стандартно используется <em>forever</em>, вы можете использовать <em>pm2</em></p>
<p dir="auto">необходимы базовые знания взаимодействия с модулями nodejs</p>
]]></description><link>https://community.smartholdem.io/post/3916</link><guid isPermaLink="true">https://community.smartholdem.io/post/3916</guid><dc:creator><![CDATA[TechnoL0g]]></dc:creator><pubDate>Mon, 06 Aug 2018 14:01:34 GMT</pubDate></item><item><title><![CDATA[Reply to Частые вопросы по использованию Full node Level A on Tue, 16 Jan 2018 17:36:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.smartholdem.io/uid/61">@toxeeg</a> через крон явно лучше вариант</p>
]]></description><link>https://community.smartholdem.io/post/1124</link><guid isPermaLink="true">https://community.smartholdem.io/post/1124</guid><dc:creator><![CDATA[TechnoL0g]]></dc:creator><pubDate>Tue, 16 Jan 2018 17:36:37 GMT</pubDate></item><item><title><![CDATA[Reply to Частые вопросы по использованию Full node Level A on Thu, 11 Jan 2018 09:03:13 GMT]]></title><description><![CDATA[<p dir="auto">у меня не работает данный скрипт. все обновления стоят</p>
]]></description><link>https://community.smartholdem.io/post/847</link><guid isPermaLink="true">https://community.smartholdem.io/post/847</guid><dc:creator><![CDATA[stil99]]></dc:creator><pubDate>Thu, 11 Jan 2018 09:03:13 GMT</pubDate></item><item><title><![CDATA[Reply to Частые вопросы по использованию Full node Level A on Wed, 10 Jan 2018 19:58:44 GMT]]></title><description><![CDATA[<p dir="auto">@mkbeh said in <a href="/post/825">Частые вопросы по использованию Full node Level A</a>:</p>
<blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.smartholdem.io/uid/61">@toxeeg</a> нет тут она просто будет сама запускаться при ребуте сервера</p>
</blockquote>
<p dir="auto">тоже хорошо, но мой вариант который я бы хотел увидеть - явно лучше )))</p>
]]></description><link>https://community.smartholdem.io/post/826</link><guid isPermaLink="true">https://community.smartholdem.io/post/826</guid><dc:creator><![CDATA[Toxeeg]]></dc:creator><pubDate>Wed, 10 Jan 2018 19:58:44 GMT</pubDate></item><item><title><![CDATA[Reply to Частые вопросы по использованию Full node Level A on Wed, 10 Jan 2018 19:42:26 GMT]]></title><description><![CDATA[<p dir="auto">Правильно ли я понял что с этой командой больше не придется следить за обновлениями и грубо говоря уехать в отпуск без компьютера (в глухой лес) на месяц и нода сама будет обновляться ?</p>
<p dir="auto">то есть заходим<br />
su smartholdem ---пароль<br />
chmod +x /home/smartholdem/smartholdem-node-a/run.sh<br />
sudo nano /etc/rc.local</p>
<p dir="auto">CTRL+o<br />
CTRL+x</p>
<p dir="auto">и все ? )</p>
]]></description><link>https://community.smartholdem.io/post/823</link><guid isPermaLink="true">https://community.smartholdem.io/post/823</guid><dc:creator><![CDATA[Toxeeg]]></dc:creator><pubDate>Wed, 10 Jan 2018 19:42:26 GMT</pubDate></item></channel></rss>