波卡验证节点部署文档

波卡验证节点部署文档1:

修改用户可以使用的最大资源数
执行ulimit -n
如返回结果低于20000,请修改配置文件/etc/security/limits.conf
vim /etc/security/limits.conf
在文末加入
root hard nofile 65535
root soft nofile 65535
* hard nofile 65535
* soft nofile 65535
关闭链接并重新登录,重新执行ulimit -n,如结果为65535,则修改成功。

DDOS
cd /usr/local/src/
wget http://www.inetbase.com/scripts/ddos/install.sh
chmod 700 install.sh
./install.sh

#Edit configuration file
vi /usr/local/ddos/ddos.conf

#Start DDOS Deflate
/usr/local/ddos/ddos.sh -c

systemctl status crond.service

追加硬盘:
查看 fdisk -l
格式化 mkfs.ext4 /dev/vdb
挂载 mount /dev/vdb /data

新建用户
1)useradd -g root polkadot
2) sudo su polkadot
3) chmod u+w /etc/sudoers
4) vim /etc/sudoers
5) polkadot ALL=(ALL) NOPASSWD:ALL

将需要挂在的/data盘的权限转给polkadot用户
chown -R polkadot /data

安装docker
1) chmod 700 ./polkadot-validator/package/docker_install.sh
2) ./polkadot-validator/package/docker_install.sh
确保用户和新建用户polkadot是一样的

获得session key, 需要call rpc
1)docker-compose 使用一下command

command: –chain kusama –name “InsightFinance” –rpc-external –rpc-cors all –unsafe-rpc-external –rpc-methods=Unsafe

2)call rpc,命令如下,并且记录下sessionkey

curl -H “Content-Type: application/json” -d ‘{“id”:1, “jsonrpc”:”2.0”, “method”: “author_rotateKeys”, “params”:[]}’ http://localhost:9933

获得如下sessionkey:
0x5cd7d85f297186d48195d132c62ebac02b8fb297585b7b7c3267f6c2ab5701990cce262cdf90888990000f328b959fb7c845c1cc7ef744acaf175eb152417c70efdc28209bb2afd10ddccc01f1cef0dfcc4592b41ef8511c059585b73d988b3f5d47a713e0786d172f281cd241dc740c9d5b7a905273b5de1f150607aa92ecd5829a577112a4b55f78a0ccb4ff2ac2693158

3)重启docker-compose 使用一下command,关闭RPC call;非常重要

command: –chain kusama –name “InsightFinance” –rpc-external –rpc-cors all

4)提交验证节点

Docker-compose 文件:

version: ‘3.8’

services:
polkadot:
container_name: polkadot
image: parity/polkadot:latest
ports:
- 30335:30333 # p2p port
- 9936:9933 # rpc port
- 9946:9944 # ws port
# 需要获得session key的时候打开这个
# command: –chain polkadot –name “Insight Finance DOT” –rpc-external –rpc-cors all –unsafe-rpc-external –rpc-methods=Unsafe
command: –chain polkadot –name “Insight Finance DOT” –rpc-external –rpc-cors all
volumes:
- /home/dot:/data

一键安装docker脚本:

yum update
yum upgrade
yum remove docker docker-client docker-client-latest docker-common docker-latest docker-latest-logrotate docker-logrotate docker-engine
yum install -y yum-utils device-mapper-persistent-data lvm2
yum-config-manager –add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum install -y docker-ce docker-ce-cli containerd.io
systemctl start docker
docker –version

curl -L https://github.com/docker/compose/releases/download/1.26.0/docker-compose-`uname -s-uname -m` -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
docker-compose –version
ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose

——————————————————- 交易所和矿池: ———————————————–

欢迎使用MoleSwap:https://moleswap.io/swap
Okex交易所:https://bitout.info/about/okex.html
西部世界FIL礦池:https://bitout.info/categories
gateio手續費9折:https://www.gate.ac/signup/9149808
幣安交易所:https://accounts.binance.com/zh-CN/register?ref=21139331
抹茶手續費9折:https://bitout.info/about/mxc
kucoin交易所:https://bitout.info/about/kucoin.html
huobi交易所:https://www.huobi.li/zh-cn/register/?invite_code=pe2p8
中币交易所:https://www.zbcoin.club/cn/register?ref=5779boon
ledger硬件钱包:https://shop.ledger.com/?r=c3516a151f3f

——————————————————- MOLE项目:———————————————
MOLE項目註冊地在海外,由於相關法規,請中國居民和虛擬幣不合法的地區不要參與註意MOLE幣交易;參與規則和步驟:https://insightcj.com/topic/60e105d04c77620012b21d78
請多渠道驗證合約地址,官網:https://moletech.io
mole電報群:https://t.me/molewallet
discord:https://discord.com/invite/k54kpvp6TB

———————————————————— 相关链接:——————————————————–
日本OTC,whatsapp联系方式: https://api.whatsapp.com/qr/2NWM52EE6WD4H1
insight电报群:https://t.me/molewallet
insight财经24小时快讯: https://insightcj.com/forum/?tab=share
區塊鏈社區:https://bitout.info/
insight財經官網: https://insightcj.com
insight日本電報群: https://t.me/workinginjapan
嗨!霓虹:https://hinihon.jp/

#Insight财经 #波卡众贷 #虛擬幣行情 #虛擬幣 #灰度 #FIL #區塊鏈技術 #Bitcoin #ETH #以太坊 #挖礦 #XRP #ADA #交易所提幣 #波卡 #狗狗幣 #Insight行情 #波卡質押
個人看法不構成投資建議

© 2022 Insight财经区块链 All Rights Reserved. 本站访客数人次 本站总访问量
Theme by hiero