BTC打赏地址:3EvLJxcQZ244u1TMx4q9jfE6gkCZYji3gQ
ETH打赏地址:0xc57450fa57748a09b437A3E3116673f4C64e64Dd
IoTE打赏地址:EHE9AQT7sezbEWUG9nJxhYPKX9eVJ369KA
步骤一:配置环境
1、 安装必要的包:
# yum -y install epel-release
# yum -y install wget python-pip unzip
2、 配置glibc环境:
# wget ftp://ftp.pbone.net/mirror/archive.fedoraproject.org/fedora/linux/updates/24/x86_64/g/glibc-headers-2.23.1-12.fc24.x86_64.rpm
# wget ftp://ftp.pbone.net/mirror/archive.fedoraproject.org/fedora/linux/updates/24/x86_64/g/glibc-devel-2.23.1-12.fc24.x86_64.rpm
# wget ftp://ftp.pbone.net/mirror/archive.fedoraproject.org/fedora/linux/updates/24/x86_64/g/glibc-common-2.23.1-12.fc24.x86_64.rpm
# wget ftp://ftp.pbone.net/mirror/archive.fedoraproject.org/fedora/linux/updates/24/x86_64/g/glibc-2.23.1-12.fc24.x86_64.rpm
***# rpm -Uvh glibc-2.23.1-12.fc24.x86_64.rpm glibc-common-2.23.1-12.fc24.x86_64.rpm glibc-devel-2.23.1-12.fc24.x86_64.rpm glibc-headers-2.23.1-12.fc24.x86_64.rpm --force --nodeps
3、 配置动态连接库文件:
lib.zip可以从csdn上下载:https://download.csdn.net/download/u013945482/11184910
# unzip lib.zip
# cd lib
**# chmod 777 ****
# cp -r l /lib64/
# rm -rf /lib64/libstdc++.so.6
***# ln -s /lib64/libstdc++.so.6.0.25 /lib64/libstdc++.so.6 ***
4、 在防火墙上开启必要的端口:
***# firewall-cmd --zone=public --add-port=2112/tcp --permanent ***
# firewall-cmd --zone=public --add-port=9999/tcp --permanent
# firewall-cmd --reload
步骤二:下载钱包:
# wget https://www.iote.one/wallet/IoTE-1.32-Linux.zip
# unzip IoTE-1.32-Linux.zip
# chmod +x IoTE-1.32-Linux/*
步骤三:替换钱包地址为个人钱包后启动ioted
# mkdir -p /root/.iotedata
# cp -r wallet.dat /root/.iotedata/ #wallet.dat 为个人钱包
# cd IoTE-1.32-Linux && ./ioted >/dev/null 2>&1
步骤四:生成主节点私钥
***# cd IoTE-1.32-Linux ***
***# ./iote-cli masternode genkey ***
936SuFLgu35TBMnviPSwSjAxXnKna3wxZWMTeZti5TSvux6Yjx3
步骤五:生成钱包地址并向其中转入150000 IOTE
# ./iote-cli getaccountaddress mn1
Eak1hKiSVpqsje15HcFnh5uvsbwg2kNX7X
步骤六:获取交易ID:
# ./iote-cli masternode outputs
{
“f50ae5ac8639eb5cb1d90c6f92ec03d16bf1ec56437f41629f48a6bd079072ce”:
“0”
}
步骤七:修改iote.conf配置文件:
# cd
# vi ~/.iotedata/iote.conf
rpcuser=iote
rpcpassword=iote104
rpcallowip=127.0.0.1
rpcport=9999
listen=1
server=1
daemon=1
logtimestamps=1
maxconnections=256
masternode=1
masternodeprivkey=936SuFLgu35TBMnviPSwSjAxXnKna3wxZWMTeZti5TSvux6Yjx3
#步骤三中生成的节点私钥
externalip=xxx.xxx.xxx.xxx
#公网ip
步骤八:修改主节点配置文件:
# cd
# vi ~/. iotedata /masternode.conf
mn1 xxx.xxx.xxx.xxx:2112
936SuFLgu35TBMnviPSwSjAxXnKna3wxZWMTeZti5TSvux6Yjx3
f50ae5ac8639eb5cb1d90c6f92ec03d16bf1ec56437f41629f48a6bd079072ce 0
步骤九:重启主节点
***# cd IoTE-1.32-Linux ***
# ./iote-cli stop
# ./ioted
查询钱包同步状态:
# ./iote-cli mnsync status
# ./iote-cli getinfo
待钱包同步完成以及质押150000 IOTE超过15次确认后,启动该节点
# ./iote-cli masternode start-all
如钱包已加锁需要先进行解锁
# ./iote-cli walletpassphrase (钱包密码) 60
查询当前主节点状态 :
# ./iote-cli masternode status
步骤十:配置哨兵
***# cd ***
# cd ~/.iotedata
# git clone https://github.com/IoTEChain/sentinel.git
# cd sentinel
# pip install -r requirements.txt
# python bin/sentinel.py
定时启动哨兵:
***# crontab -e ***
*/1 * * * * cd ~/.iotedata/sentinel && python bin/sentinel.py >/dev/null 2>&1