# 切换到 root 用户
sudo su
# 创建全节点目录
mkdir -p /root/aptos-node/movemove/testnet3/keys
cd /root/aptos-node/movemove/testnet3
sudo wget -O docker-compose-fullnode.yaml https://raw.githubusercontent.com/jiangydev/aptos-node/main/testnet/AIT3/docker-compose-fullnode.yaml
sudo wget -O fullnode.yaml https://raw.githubusercontent.com/aptos-labs/aptos-core/main/docker/compose/aptos-node/fullnode.yaml
base:
role: "full_node"
data_dir: "/opt/aptos/data"
waypoint:
from_file: "/opt/aptos/genesis/waypoint.txt"
execution:
genesis_file_location: "/opt/aptos/genesis/genesis.blob"
full_node_networks:
- network_id:
private: "vfn"
listen_address: "/ip4/0.0.0.0/tcp/6181"
seeds:
00000000000000000000000000000000d58bc7bb154b38039bc9096ce04e1237:
addresses:
- "/ip4/修改成您的验证者节点ip或域名/tcp/6181/noise-ik/f0274c2774519281a8332d0bb9d8101bd58bc7bb154b38039bc9096ce04e1237/handshake/0"
role: "Validator"
- network_id: "public"
discovery_method: "onchain"
listen_address: "/ip4/0.0.0.0/tcp/6182"
max_inbound_connections: 100
identity:
type: "from_file"
path: "/opt/aptos/genesis/validator-full-node-identity.yaml"
api:
enabled: true
address: "0.0.0.0:8080"
拷贝 genesis.blob、waypoint.txt 和 fullnode key 文件
# 进入验证者节点操作的目录(如果不是,请自行修改)
cd /root/aptos-node/testnet3
sudo scp genesis.blob root@全节点ip:/root/aptos-node/movemove/testnet3/
sudo scp waypoint.txt root@全节点ip:/root/aptos-node/movemove/testnet3/
sudo scp keys/validator-full-node-identity.yaml root@全节点ip:/root/aptos-node/movemove/testnet3/keys/
sudo docker-compose -f docker-compose-fullnode.yaml pull
sudo docker-compose -f docker-compose-fullnode.yaml up -d