Way to witness. Part 5.

in hive-153018 •  3 years ago 

Way to witness. Part 5.

steemit club5050 wintess category-witness

image.png

I invite you to look at our projects, and support by vote for witness on the site: https://steemitwallet.com/~witnesses
accounts: alexmove.witness and steemit-market

Предыдущий пост: https://steemit.com/hive-153018/@alexmove/way-to-witness-part-4

В третий раз за месяц буду устанавливать ноду для STEEMIT.

Итак, первый делом нужен бэка блокчейна. Рассмотрим вариант, у нас есть вторая работающая нода.

Первым делом пакуем останавливаем ноду.

./run.sh stop
zip -0 test4.zip blockchain

Затем делаем так, чтобы можно было выгрузить из сервера этот файл.

const express = require('express')
const app = express()
const port = 3000
app.use(express.static(__dirname + '/public'));
app.get('/test', (req, res) => {
    //let path = './data/';
    const file = `${__dirname}/test4.zip`;

    res.download(file);
});

app.listen(port, () => {
  console.log(`Example app listening on port ${port}`)
})

http://65.21.246.246:3000/test4.zip

Может понадобится:
sudo lsof -i :3000
kill -9 752876
node start.js

Теперь, нужно поставить на закачку файл на новом сервере.

screen
ctrl a
ctrl d

wget -c http://65.21.246.246:3000/test4.zip
wget -c http://65.21.246.246:3000/test12.zip
screen -r

SHOW PROCESSLIST
KILL
service mysql restart

http://65.21.246.246:3000/test4.zip

sudo service docker stop
sudo service docker start

Status: Downloaded newer image for sereyio/sereyd:latest
docker: Error response from daemon: driver failed programming external connectivity on endpoint busy_satoshi (ded4470db814a1369f200d1e79ac98fed4635bd1dab1329d6221bf5174a5d804): Bind for 0.0.0.0:2001 failed: port is already allocated.

sudo docker run --rm -it -p 8092:8092 -p 2003:2003 -v /opt/witness_node_data_dir:/opt/witness_node_data_dir sereyio/sereyd:latest /opt/steemd -d /opt/witness_node_data_dir

sudo docker run --rm -it -p 8090:8090 -p 2002:2002 -v /opt/witness_node_data_dir:/opt/witness_node_data_dir sereyio/sereyd:latest /opt/steemd -d /opt/witness_node_data_dir

sudo docker run --rm -it -p 8090:8090 -p 2002:2002 -v /opt/witness_node_data_dir:/opt/witness_node_data_dir sereyio/sereyd:latest /opt/steemd -d /opt/witness_node_data_dir

full

sudo docker run --rm -it -p 8095:8095 -p 2005:2005 -v /mnt/serey/witness_node_data_dir:/mnt/serey/witness_node_data_dir sereyio/sereyd:latest /mnt/serey/steemd -d /mnt/serey/witness_node_data_dir

sudo chmod 777 witness_node_data_dir
sudo docker run --rm -it -p 8090:8090 -p 2001:2001 -v /opt/witness_node_data_dir:/opt/witness_node_data_dir sereyio/sereyd:latest /opt/steemd -d /opt/witness_node_data_dir

sudo docker run --rm -it -p 8096:8096 -p 2006:2006 -v /mnt/serey/witness_node_data_dir:/mnt/serey/witness_node_data_dir sereyio/sereyd:latest /mnt/serey/steemd -d /mnt/serey/witness_node_data_dir

sudo lsof -i -P -n | grep 9000
kill -9 process id

Have a nice day!

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Upvoted! Thank you for supporting witness @jswit.
default.jpg