SUI Full Node — Building from Source
Minimum hardware requirements for running a Sui fullnode:
- CPUs: 2
- RAM: 8GB
- Storage: 50GB ( Storage requirements will vary based on various factors)
We recommend running Sui fullnodes on Linux. The Sui team supports the Ubuntu and Debian distributions and tests against Ubuntu version 18.04 (Bionic Beaver). This guide uses Ubuntu version 20.04.
Installing the required tools and update packages
Make sure your entire toolchain stays up-to-date.
Configuring a full node
Set up your fork of the Sui repository:
Go to the Sui repository on GitHub and click the Fork button in the top right-hand corner of the screen. Then follow below commands.
Update the paths for suidb and genesis.blob
db-path field with the path to where the full node's database is located. Update the
genesis-file-location with the path to the
Start your Sui Full Node
Before you start Sui Full Node open new shell with
screen -R <name> command. So you can detach and leave the screen running in the background.
Start your fullnode.
To detach from screen:
ctrl + a and d .
You can use
screen -R command anytime to enter the screen and check if compiling finish.
Run the fullnode with service file
After building binary, stop your full node and detach from your screen.
Move the sui-node binary to /usr/local/bin/
Create suid.service file.
Copy below lines to your suid.service. Don’t forget the update <user> and chnage /path/to/fullnode.yaml with your fullnode.yaml location.
Start your node with service file: