Node Setup
Install and Update Required Packages
Install the Initia Daemon
Then, we need to clone the Initia repository and checkout the latest or desired version.
Once we have the correct version, we can build the binary. This will install the initiad
executable to your GOPATH
environment variable.
To verify that the installation was successful, run the following command:
If installed correctly, this should give you an output similar to the following:
If you get a initiad: command not found
message from running initiad
, you may need to add the GOPATH/bin
directory to your PATH
environment variable.
Increases File Descriptors Limit
Linux systems by default set the maximum number of file descriptors that can be opened by a process to 1024. It is recomemneded that you increase this amount.
To do so, modify /etc/security/limits.conf
to increase the amount. The nofile
is the number of files a process may open at a time.
If you are using a non-root user, replace *
with the username of the user.
Register Initia as a Service
While you can run your initia node manually, it is recomemnded that you register it as a Linux service. This will allow you to more easily manage your node and also to run it as a background process.
To do so, create a file at /etc/systemd/system/initiad.service
with the contents below. replace
- User: with the accout name that you will be running
initiad
from - ExecStart: with the full path to the
initiad
binary +start
command
Once the file is created, run the following command to enable the service and start it:
Whenever you modify the initiad.service
file after you enabled it, you need to run the following commands first before the changes are applied
Was this page helpful?