bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 33쪽 중 33쪽
llscript filename="Terminal"
nohup ./target/release/aptos-node -f ./archival-fullnode.yaml > node.log 2>&1 &
```
</Callout>
## Step 6: Verify the Node
Verify that your archival node is running correctly:
```shellscript filename="Terminal"
# Check the node is responding
curl http://localhost:8080/v1
# Check the ledger version
curl -s http://localhost:8080/v1 | jq '.ledger_version'
# Verify historical data access (query genesis transaction)
curl http://localhost:8080/v1/transactions/by_version/1
# Check oldest available ledger version (should be 0 for archival)
curl -s http://localhost:8080/v1 | jq '.oldest_ledger_version'
```
<Callout type="info">
**Sync Time**
After restoring from backup, your archival node will need to sync the remaining transactions from the backup point to the current chain head. This typically takes a few hours depending on how recent the backup is.
</Callout>
## Running as a Systemd Service
Create a systemd service file for automatic startup:
```ini filename="/etc/systemd/system/movement-archival.service"
[Unit]
Description=Movement Archival Node
After=network.target
[Service]
Type=simple
User=movement
WorkingDirectory=/home/movement/aptos-core
ExecStart=/home/movement/aptos-core/target/release/aptos-node -f /home/movement/aptos-core/archival-fullnode.yaml
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target
```
Enable and start the service:
```shellscript filename="Terminal"
sudo systemctl daemon-reload
sudo systemctl enable movement-archival
sudo systemctl start movement-archival
# Check status
sudo systemctl status movement-archival
# View logs
sudo journalctl -u movement-archival -f
```
## Updating the Node
To update to a newer version:
```shellscript filename="Terminal"
# Stop the node
sudo systemctl stop movement-archival # or kill the process
# Pull latest changes
cd aptos-core
git pull origin l1-migration
# Rebuild
cargo build -p aptos-node --release
# Restart
sudo systemctl start movement-archival
```
## Troubleshooting
### Build fails
1. Ensure all build dependencies are installed
2. Check Rust version: `rustc --version`
3. Try cleaning and rebuilding: `cargo clean && cargo build -p aptos-node --release`
### Node won't start
1. Check configuration file syntax
2. Verify all paths in the config are correct
3. Ensure data directory exists and has correct permissions
### Node is not syncing
1. Check logs for connection errors
2. Verify network connectivity to upstream peers
3. Ensure port 6182 is open for outbound connections
## Next Steps
* [Verify your archival node](/general/nodes/archival-node/run/verify)
# Using Docker
URL: /general/nodes/full-node/run/deploy/docker
This section describes how to configure and run your PFN using Docker.
<Callout type="warning">
**Supported only on x86-64 CPUs**
Running aptos-core via Docker is currently only supported on x86-64 CPUs. If you have an Apple M1/M2 (ARM64) Mac, use the [source code approach](/general/nodes/full-node/run/deploy/source) instead.
</Callout>
## Prerequisites
* [Docker](https://docs.docker.com/get-docker/) installed
* Sufficient storage space (\~50-100GB)
## Step 1: Download Configuration Files
Download the fullnode configuration and genesis files for your network:
### For Mainnet
```shellscript filename="Terminal"
mkdir -p mainnet && cd mainnet
mkdir -p data
curl -O https://raw.githubusercontent.com/movement-network/movement-networks/main/mainnet/configs/fullnode.yaml
curl -O https://raw.githubusercontent.com/movement-network/movement-networks/main/mainnet/genesis.blob
curl -O https://raw.githubusercontent.com/movement-network/movement-networks/main/mainnet/waypoint.txt
curl -O https://raw.githubusercontent.com/movement-network/movement-networks/main/mainnet/genesis_waypoint.txt
```
### For Testnet
```shellscript filename="Terminal"
mkdir -p testnet && cd testnet
mkdir -p data
curl -O https://raw.githubusercontent.com/movement-network/movement-networks/main/testnet/configs/fullnode.yaml
curl -O https://raw.githubusercontent.com/movement-network/movement-networks/main/testnet/genesis.blob
curl -O https://raw.githubusercontent.com/movement-network/movement-networks/main/testnet/waypoint.txt
curl -O https://raw.githubusercontent.com/movement-network/movement-networks/main/testnet/genesis_waypoint.txt
```
<Callout type="info">
**Genesis files repository**
All configuration and genesis files are maintained at [https://github.com/movement-network/movement-networks](https://github.com/movement-network/movement-networks)
</Callout>
## Step 2: Run the Fullnode
Start the fullnode using Docker:
```shellscript filename="Terminal"
docker run --pull=always \
--rm -p 8080:8080 \
-p 9101:9101 -p 6180:6180 \
-v $(pwd):/opt/aptos \
-v $(pwd)/data:/opt/aptos/data \
--workdir /opt/aptos \
--name=aptos-fullnode \
ghcr.io/movement-network/aptos-node:f24a5bc \
-f /opt/aptos/fullnode.yaml
```
<Callout type="info">
**Running in Background**
To run the node in the background, add the `-d` flag:
```shellscript filename="Terminal"
docker run --pull=always -d \
--rm -p 8080:8080 \
-p 9101:9101 -p 6180:6180 \
-v $(pwd):/opt/aptos \
-v $(pwd)/data:/opt/aptos/data \
--workdir /opt/aptos \
--name=aptos-fullnode \
ghcr.io/movement-network/aptos-node:f24a5bc \
-f /opt/aptos/fullnode.yaml
```
View logs with: `docker logs -f aptos-fullnode`
</Callout>
<Callout type="warning">
**Sudo access**
You may need to prefix the docker command with `sudo` depending on your configuration.
</Callout>
## Step 3: Verify the Node
Check that your node is running:
```shellscript filename="Terminal"
curl http://localhost:8080/v1
```
You should see a JSON response with the node's status including `chain_id`, `epoch`, and `ledger_version`.
## Configuration Details
The downloaded `fullnode.yaml` contains the following configuration:
```yaml
base:
role: "full_node"
data_dir: "/opt/aptos/data"
waypoint:
from_file: "/opt/aptos/waypoint.txt"
execution:
genesis_file_location: "/opt/aptos/genesis.blob"
genesis_waypoint:
from_file: "/opt/aptos/genesis_waypoint.txt"
storage:
rocksdb_configs:
enable_storage_sharding: false
full_node_networks:
- network_id: "public"
discovery_method: "none"
listen_address: "/ip4/0.0.0.0/tcp/6182"
seeds:
# Network-specific seed node configuration
...
api:
enabled: true
address: 0.0.0.0:8080
state_sync:
state_sync_driver:
bootstrapping_mode: DownloadLatestStates
continuous_syncing_mode: ApplyTransactionOutputs
```
<Callout type="warning">
**Don't want to allow inbound connections?**
Override the listen address in your config if you don't want other PFNs connecting to yours:
```yaml
listen_address: "/ip4/127.0.0.1/tcp/6182"
```
</Callout>
## Ports
| Port | Purpose |
| ---- | --------------------------------------- |
| 8080 | REST API |
| 9101 | Metrics (Prometheus) |
| 6180 | Internal use |
| 6182 | P2P networking (not exposed by default) |
## Docker Tags
The `latest` tag always refers to the latest official Docker image. You can find the current version at:
* Mainnet: [https://github.com/movement-network/movement-networks/tree/main/mainnet](https://github.com/movement-network/movement-networks/tree/main/mainnet)
* Testnet: [https://github.com/movement-network/movement-networks/tree/main/testnet](https://github.com/movement-network/movement-networks/tree/main/testnet)
## Next Steps
* [Verify your PFN](/general/nodes/full-node/run/verify) - Check that your node is running correctly
* [Archival Node](/general/nodes/archival-node) - If you need complete historical data
# Deploy a PFN
URL: /general/nodes/full-node/run/deploy
The following guides provide step-by-step instructions for deploying a PFN on the Movement networks.
<Callout type="info">
**Do I have to run a PFN?**<br />
If you do not wish to run a PFN, but still want to interact with the Movement blockchain, you can use the REST API
provided by the Move Industries' PFNs (see [Movement APIs](/api)). Note, however, that Move Industries-provided PFNs have rate
limits, which can impede your development. You can deploy your own PFN
and synchronize with the Movement blockchain directly, or use a different node infrastructure provider.
</Callout>
Select the guide for the deployment method you prefer:
<Callout type="warning">
**Choose a network**<br />
These guides default to deploying a PFN in the Movement for mainnet or testnet network.
To find all configuration files for all Movement networks, check out the
[movement-networks](https://github.com/movement-network/movement-networks) repo
and use the `genesis.blob` and `waypoint.txt` node files for the respective networks:
[mainnet](https://github.com/movement-network/movement-networks/blob/main/mainnet/README.md)
and [testnet](https://github.com/movement-network/movement-networks/blob/main/testnet/README.md).
</Callout>
* ### [Using Source Code](/general/nodes/full-node/run/deploy/source)
* ### [Using Docker](/general/nodes/full-node/run/deploy/docker)
# Using Source Code
URL: /general/nodes/full-node/run/deploy/source
This guide describes how to deploy a PFN using the `aptos-core` source code maintained by Move Industries.
## Prerequisites
* [Rust toolchain](https://rustup.rs/) installed
* Sufficient storage space (\~50-100GB)
* Build dependencies installed
### Install Build Dependencies (Linux)
```shellscript filename="Terminal"
sudo apt update
sudo apt install -y binutils build-essential lld pkg-config libdw-dev
```
## Step 1: Clone and Build
```shellscript filename="Terminal"
# Clone the Movement aptos-core repository
git clone https://github.com/movement-network/aptos-core.git
cd aptos-core
# Check out the l1-migration branch
git checkout --track origin/l1-migration
# Build the release binary
cargo build -p aptos-node --release
```
<Callout type="info">
**Build Time**
The initial build can take 15-30 minutes depending on your hardware. The release binary will be at `target/release/aptos-node`.
</Callout>
## Step 2: Download Configuration Files
Download the fullnode configuration and genesis files for your network:
### For Mainnet
```shellscript filename="Terminal"
curl -O https://raw.githubusercontent.com/movement-network/movement-networks/main/mainnet/configs/fullnode.yaml
curl -O https://raw.githubusercontent.com/movement-network/movement-networks/main/mainnet/genesis.blob
curl -O https://raw.githubusercontent.com/movement-network/movement-networks/main/mainnet/waypoint.txt
curl -O https://raw.githubusercontent.com/movement-network/movement-networks/main/mainnet/genesis_waypoint.txt
```
### For Testnet
```shellscript filename="Terminal"
curl -O https://raw.githubusercontent.com/movement-network/movement-networks/main/testnet/configs/fullnode.yaml
curl -O https://raw.githubusercontent.com/movement-network/movement-networks/main/testnet/genesis.blob
curl -O https://raw.githubusercontent.com/movement-network/movement-networks/main/testnet/waypoint.txt
curl -O https://raw.githubusercontent.com/movement-network/movement-networks/main/testnet/genesis_waypoint.txt
```
<Callout type="info">
**Genesis files repository**
All configuration and genesis files are maintained at [https://github.com/movement-network/movement-networks](https://github.com/movement-network/movement-networks)
</Callout>
## Step 3: Update Configuration Paths
Edit the `fullnode.yaml` to use local paths:
```yaml filename="fullnode.yaml"
base:
role: "full_node"
data_dir: "./data" # Local data directory
waypoint:
from_file: "./waypoint.txt"
execution:
genesis_file_location: "./genesis.blob"
genesis_waypoint:
from_file: "./genesis_waypoint.txt"
```
Create the data directory:
```shellscript filename="Terminal"
mkdir -p data
```
## Step 4: Run the Fullnode
Start the fullnode:
```shellscript filename="Terminal"
# Using the release binary
./target/release/aptos-node -f ./fullnode.yaml
# Or using cargo run
cargo run -p aptos-node --release -- -f ./fullnode.yaml
```
<Callout type="info">
**Debug vs Release**
The release binary is substantially faster than debug builds but lacks debugging information. To build a debug binary for development, omit the `--release` flag.
</Callout>
## Step 5: Verify the Node
Check that your node is running:
```shellscript filename="Terminal"
curl http://localhost:8080/v1
```
You should see a JSON response with the node's status including `chain_id`, `epoch`, and `ledger_version`.
## Running as a Background Service
To run the node as a systemd service:
```ini filename="/etc/systemd/system/movement-fullnode.service"
[Unit]
Description=Movement Full Node
After=network.target
[Service]
Type=simple
User=movement
WorkingDirectory=/home/movement/aptos-core
ExecStart=/home/movement/aptos-core/target/release/aptos-node -f /home/movement/aptos-core/fullnode.yaml
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target
```
Enable and start the service:
```shellscript filename="Terminal"
sudo systemctl daemon-reload
sudo systemctl enable movement-fullnode
sudo systemctl start movement-fullnode
# Check status
sudo systemctl status movement-fullnode
# View logs
sudo journalctl -u movement-fullnode -f
```
## Configuration Details
The downloaded `fullnode.yaml` contains the following key settings:
```yaml
base:
role: "full_node"
data_dir: "/opt/aptos/data"
waypoint:
from_file: "/opt/aptos/waypoint.txt"
execution:
genesis_file_location: "/opt/aptos/genesis.blob"
genesis_waypoint:
from_file: "/opt/aptos/genesis_waypoint.txt"
storage:
rocksdb_configs:
enable_storage_sharding: false
full_node_networks:
- network_id: "public"
discovery_method: "none"
listen_address: "/ip4/0.0.0.0/tcp/6182"
seeds:
# Network-specific seed node
...
api:
enabled: true
address: 0.0.0.0:8080
state_sync:
state_sync_driver:
bootstrapping_mode: DownloadLatestStates
continuous_syncing_mode: ApplyTransactionOutputs
```
## Updating the Node
To update to a newer version:
```shellscript filename="Terminal"
# Stop the node
sudo systemctl stop movement-fullnode # or kill the process
# Pull latest changes
cd aptos-core
git pull origin l1-migration
# Rebuild
cargo build -p aptos-node --release
# Restart
sudo systemctl start movement-fullnode
```
## Troubleshooting
### Build fails
1. Ensure all build dependencies are installed
2. Check Rust version: `rustc --version`
3. Try cleaning and rebuilding: `cargo clean && cargo build -p aptos-node --release`
### Node won't start
1. Check configuration file syntax
2. Verify all paths in the config are correct
3. Ensure data directory exists and has correct permissions
### Node is not syncing
1. Check logs for connection errors
2. Verify network connectivity to upstream peers
3. Ensure port 6182 is open for outbound connections
## Next Steps
* [Verify your PFN](/general/nodes/full-node/run/verify) - Check that your node is running correctly
* [Archival Node](/general/nodes/archival-node) - If you need complete historical data프로젝트로 돌아가기