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 deploy Neo private chain

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

Most people do not understand the knowledge points of this article "how to deploy Neo private chain", so the editor summarizes the following content, detailed content, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "how to deploy Neo private chain" article.

Configure a virtual machine

The deployment of the NEO private chain requires at least four servers to reach a consensus, with each server corresponding to a consensus node. Pay-per-view virtual machines (all window server machines) can be bought on Aliyun.

Record the intranet IP addresses of the four machines, which you will use later.

172.xxx.xxx.142 port

If you want external programs to access the node's API, you need to open firewall ports: 10331-10334, 20331-20334

Aliyun's vpc does not need to be set if it is in a security group. All entrances can also be opened through the security group.

Aliyun Security Group

Install Runtime

Operation environment

.NET Core Runtime is required to run the NEO node, and version 1.0.1 or above is required.

Installation method under Windows system

It is very convenient to install .NET Core under the Windows system, so you can download and run it directly.

NOTE

Windows may also need to install Microsoft Visual C++ 2015 Redistributable Update 3 (https://www.microsoft.com/en-us/download/details.aspx?id=53840)), otherwise Neo-CLI cannot be started later.

Create a wallet

Create a wallet database on each of the four machines, and the database files will be generated under the neo-cli directory by default

Create wallet wallet.json

Database files with db3 suffixes are no longer supported

Neo1

Neo > create wallet wallet.db3Wallet files in db3 format are not supported, please use a .json file extension.neo > create wallet wallet.jsonpassword: * password: * address: AS43TUy7VtuGpNJh3YC2NM3asTv3s6piyk pubkey: 02d57c9bbc42b45943867dff0180cb9df266b46db7d027a283eabc7c4b8819c86c

Record the wallet public keys of several other machines

Neo2

Address: AY35ZjJayg9JfmCeHg1nySN4LSMntFEq2h pubkey: 035022ce81faca930ebe6b9f8e830526150e47692f19f58affe1311e42cd0d43bb

Neo3

Address: AQZNtdGVXbfot5fSaR4ijBqrEwbnFQspmH pubkey: 029f21d56f9422e55f0ef7cf75c092854e01c99aeee73f0effeaa489a96fc7d2b1

Neo4

Address: AXctyT8ctWTXtWaUFM9o5FJas8BWdBbiqe pubkey: 02dc0e750e21c386537618079d89836eea39fad396206e2e56cfba16bdc014dc5d modifies the configuration file of the node {"ProtocolConfiguration": {"Magic": 1, "AddressVersion": 23, "StandbyValidators": ["02d57c9bbc42b45943867dff0180cb9df266b46db7d027a283eabc7c4b8819c86c", "035022ce81faca930ebe6b9f8e830526150e47692f19f58affe1311e42cd0d43bb", "029f21d56f9422e55f0ef7cf75c092854e01c99aeee73f0effeaa489a96fc7d2b1", "02dc0e750e21c386537618079d89836eea39fad396206e2e56cfba16bdc014dc5d"], "SeedList": ["172.24.198.142pur10333", "172.24.198.141purl10333", "172.24.198.140Suzhou 10333" "172.24.198.139 IssueTransaction 10333"], "SystemFee": {"EnrollmentTransaction": 0, "IssueTransaction": 0, "PublishTransaction": 0, "RegisterTransaction": 0} Open the wallet Open consensus open wallet wallet.jsonstart consensus

If you have previously opened cli, delete the files in the chain directory so that the block chain height starts at 1.

Intercept one of the prints, which is convenient for debugging later.

Neo > open wallet wallet.jsonpassword: * neo > start consensus [18:04:31] OnStart [18:04:31] initialize: height=1 view=0 index=0 role=Backup [18:04:47] OnChangeViewReceived: height=1 view=0 index=2 nv=2 [18:05:01] timeout: height=1 view=0 state=Backup [18:05:01] request change view: height=1 view=0 nv=1 state=Backup ViewChanging [18:05:58] OnPrepareRequestReceived: height=1 view=0 index=1 tx=1 [18:05:58] send perpare response [18:06:01] OnPrepareResponseReceived: height=1 view=0 index=2 [18:06:01] relay block: 0x8515184285fa2e454b0eca441580b5cce01cc0e5cb5dd6d7ff53ef13ec7f665e [18:06:01] persist block: 0x8515184285fa2e454b0eca441580b5cce01cc0e5cb5dd6d7ff53ef13ec7f665e [18:06:01] initialize: height=2 view=0 index=0 role=Backup [18:06:16] OnPrepareRequestReceived: height=2 view=0 index=2 tx=1 [18:06:16] send perpare response [18:06:19] OnPrepareResponseReceived: height=2 view=0 index=1 [18:06:19] relay block: 0x35b163f4f524a1ebcc1ef3053e878f9bb37b1f4a8531a060ef18cfd6efefdf45 [18: 06:19] persist block: 0x35b163f4f524a1ebcc1ef3053e878f9bb37b1f4a8531a060ef18cfd6efefdf45 [18:06:19] initialize: height=3 view=0 index=0 role=Backup [18:06:49] timeout: height=3 view=0 state=Backup [18:06:49] request change view: height=3 view=0 nv=1 state=Backup ViewChanging [18:06:49] OnChangeViewReceived: height=3 view=0 index=1 nv=1 [18:06:53] OnChangeViewReceived: height=3 view=0 index=2 nv=1 [18:06:53] initialize: height=3 view=1 index=0 role=Backup [18:06:55] OnPrepareRequestReceived: height=3 view=1 index=2 tx=1 [18:06:55] send perpare response [18:06:55] OnPrepareResponseReceived: height=3 view=1 index=1 [18:06:55] relay block: 0x1766a0602903f513f76561c93fddf312f70d30801310abfecacc89feace5c412 [18:06:55] persist block: 0x1766a0602903f513f76561c93fddf312f70d30801310abfecacc89feace5c412 [18:06:55] initialize: height=4 view=0 index=0 role=Primary [18:07:10] timeout: height=4 View=0 state=Primary [18:07:10] send perpare request: height=4 view=0 [18:07:13] OnPrepareResponseReceived: height=4 view=0 index=3 [18:07:13] OnPrepareResponseReceived: height=4 view=0 index=2 [18:07:13] relay block: 0x5233d9086db97e59f86d73e8735093c1b3fe4569759697ff8a04e0eb8f389091 [18:07:13] persist block: 0x5233d9086db97e59f86d73e8735093c1b3fe4569759697ff8a04e0eb8f389091 [18:07:13] initialize: height=5 view=0 index=0 role=Backup above is about the article "how to deploy Neo Private chain" I believe we all have a certain understanding. I hope the content shared by the editor will be helpful to you. If you want to know more about the relevant knowledge, please pay attention to the industry information channel.

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