Maintenance
Starting the Zetrix Service
Input the following command to start the zetrix service.
Note: You must enter the /usr/local/ztxchain/scripts directory to execute ztx command.
Stopping the Zetrix Service
Input the following command to stop the zetrix service.
Querying the Zetrix Service Status
Input the following command to query the zetrix service.
Querying the Detailed System Status
Input the following command to query the detailed system status.
The result is shown below:
Clearing Database
You must stop the Zetrix service before clearing the database. You must complete the following steps to clear the database:
Input the following command to enter the zetrix service directory.
Input the following command to clear the database.
Note: After the database is successfully cleared, you can see the information shown below.
Creating a Hard Fork
You must complete the following steps to create a hard fork.
Create the hard fork by inputting the following command in the /usr/local directory.
Enter
y
when prompted and then pressEnter
. The message shown below indicates the hard fork is created successfully.
Note:
After executing the above command, the new blockchain network has only one verification node.
After executing the hard fork command, the following hash value is displayed:
Input the following command to clear the consensus status data. When clearing the consensus status data, you must ensure that the zetrix service is not running, otherwise it cannot be cleared.
Add the hash value to the ztx.json file in the /usr/local/ztxchain/config directory of the node or synchronization node.
Start the node service for the configuration to take effect.
Updating the configure file
Before updating the configure file, you must make sure that the Zetrix service is down. If you want to update the configure file of the Zetrix node, you can modify it by following the steps below.
Input the following command to enter the directory where the configuration file is located.
Change the configuration file name (ztx.json) for the current running environment, for example:
Update the configure file ztx.json, for example:
Note:
If you want to update the configure file, you can refer to xxx
After changing the running environment, you must clear the database to restart the zetrix service.
Last updated