Bitshare节点和钱包启动
1、修改配置文件
/data2/bit-test/witness_node_data_dir/config.ini
rpc-endpoint = 0.0.0.0:8090
rpc-tls-endpoint = 0.0.0.0:11008
server-pem = /etc/letsencrypt/live/XXX.com/fullchain.pem
2、启动节点
nohup /data2/bit-test/programs/witness_node/witness_node -d /data/bit >>/data2/bit-test/logs/bts.log &
3000千万个区块 同步约6小时
-d指定数据存放目录,如果不指定,会自己在/root目录下创建,切记
3、后台启动
tmux new-s -s cli-wallet
4、启动钱包
/data2/bit-test/programs/cli_wallet
sudo ./cli_wallet --wallet-file=/data2/bit-test/wallet.json --chain-id 4f6a6c41c6a5****** --server-rpc-endpoint=ws://127.0.0.1:8090 -H 0.0.0.0:8888
-w指定钱包文件
–chain-id 指定链
–server-rpc指定witness_node的连接端口
5、设置钱包密码
new >>> set_password Mjc*****
set_password Mjc*****
null
locked >>> unlock
unlock
6、查看节点和钱包端口
netstat -lntup
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:8888 0.0.0.0:* LISTEN 21009/./cli_wallet
tcp 0 0 0.0.0.0:8090 0.0.0.0:* LISTEN 3236/witness_node
tcp 0 0 0.0.0.0:11008 0.0.0.0:* LISTEN 3236/witness_node