Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to build NEM Catapult Symbol Test Node

2025-01-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

How to build a NEM Catapult Symbol test node, I believe that many inexperienced people do not know what to do, so this paper summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.

Hello everyone, I think a lot of people want to run the Symbol (NEM Catapult) Testnet node.

I have done a detailed tutorial that will help you run nodes at the lowest cost. All you have to do is copy and paste (it's simple, isn't it? And then you can run the node on CentOS 8

Therefore, you will perform the following steps:

Find a CVM that can run nodes. Ali Cloud is recommended.

Run some commands.

If you need help, please ask me and I will try my best.

1. Purchase CVM

If it's just a test, just choose the cheapest one.

Minimum hardware requirements, but I tested it, 1 core, 2GB memory can also run

CPU:2 kernel

Memory: 4GB

Hard disk: 20GB

Operating system: CentOS 7

1. Suppose you have registered and logged in to Aliyun console (www.aliyun.com) 2. Create an ECS instance and select the specification. Since it is a test node, you can choose the cheapest one.

3. Select an image. The latest version is CentOS 8.0.

4. Select hard disk, size 20GB, and other defaults

5. Select Network

6. Select the bandwidth. The billing mode is "Traffic by usage", with a peak value of 100m.

7. Login credentials, select "Custom password"

8. Instance name, custom. "symbol-testnet-node" is entered here.

9. For other configurations, select "confirm order" by default.

10. Open a command line window and log in to the ECS instance you just created

Second, install Docker

Since version 1.13, Docker uses a timeline as the version number, which is divided into community version CE and enterprise version EE. The community version is free for individual developers and small groups, while the enterprise version provides additional fee-based services, such as officially tested and certified infrastructure, containers, plug-ins, and so on. The community version is released in both stable and edge, updating the stable version quarterly, such as 17.06 Magi 17.09, and every month updating the edge version, such as 17.09 Magi 17.10.

1. Make sure the yum package is updated to the latest sudo yum update2. Uninstall the old version (optional) sudo yum remove docker docker-common docker-selinux docker-engine3. Install the necessary software package sudo yum install-y yum-utils device-mapper-persistent-data lvm24. Set yum source sudo yum-config-manager-- add-repo https://download.docker.com/linux/centos/docker-ce.reposudo yum-config-manager-- add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo # Aliyun yum source 5. View docker version (optional) yum list docker-ce-- showduplicates | sort-R6. Install dockeryum install docker-ce # I don't know why the command cannot complete the installation. Install yum install # by specifying the version number, such as sudo yum install docker-ce-17.12.1.ce

7. Start docker and join boot auto boot systemctl start docker # start dockersystemctl enable docker # join boot boot 8. Check whether docker has successfully installed docker version

If you see both client and server, the installation is successful

9. Install docker-compose

Since Python3 and pip3 are already installed in CentOS 8, you can install them directly

Pip3-V # View the version number of pip3 pip3 install docker-compose

Third, install test node 1. Install gityum install-y git2. Download the latest package git clone https://github.com/nemfoundation/symbol-testnet-bootstrap.git

Enter the ls command after the download is complete, and you can see that there is a 'symbol-testnet-bootstrap' directory' under the current directory.

3. Select the directory cd symbol-testnet-bootstrapcd api-harvest-assembly # if you want the node to be interactive, enter this directory (test network, recommend this directory) cd peer-assembly # if you just want the node to focus on transaction confirmation, enter this directory 4. Run the following command to start Catapultdocker-compose up-- build-- detach on the server. 4. Security group configuration

After Aliyun creates ECS, if there is no security group, the system will create a default security group and put the newly created ECS into the security group. In this case, the public network cannot access the ECS. Therefore, the security group needs to be configured.

1. Enter the security group

After entering the "CVM" console page, you will see the "Security Group" submenu under the "Network and Security" menu on the left. Click and enter the Security Group page, select "configuration rules" on the right, and enter the "Security Group list" page.

two。 Add a security group rule

Click the "add Security Group Rule" button in the upper right corner of the Security Group list to add a rule.

5. Verify the node http://PUBLIC_IP:3000/chain/height

PUBLIC_IP is the public network IP address of the node

6. Other useful commands 1. Turn off the node service docker-compose down2. Start the node service docker-compose up-build-detach3. Modify node profile

After running the node for the first time, you can modify the node configuration file, such as the node's Public Key or harvest configuration

After reading the above, have you mastered how to build a NEM Catapult Symbol test node? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report