Installation and deployment of NEO node
The above article describes two clients for nodes in the NEO network. One is Neo-CLI (the command line client - for developer use), and the other is Neo-GUI (the graphical interface client - for the advanced user)
The deployment consensus node uses the
Neo-CLI, a cross-platform program that runs in Windows, Linux and Docker.
|Windows 7 SP1 x64||✅|
|Windows Server 2008 R2 SP1||✅|
|Red Hat Enterprise Linux 7 Server||✅|
|Ubuntu 14.04, 16.04, 16.10||✅|
|Fedora 23, 24||✅|
|CentOS 7.1 & Oracle Linux 7.1||✅|
|openSUSE 13.2, 42.1||✅|
At present, NEO nodes do not work properly under Mac OS. In the future there will be support for Mac OS, please wait for further updates.
Run the environment
Running of an NEO node requires installation of .NET Core Runtime, version 2.0 or above.
Windows system installation method
In the Windows system, installation of . NET Core is very convenient, you can directly download and run.
Linux system installation method
The following shows how .NET Core is installed in Red Hat Enterprise Linux 7 Server:
Other distributions of the Linux kernel installation method, please refer to .NET Core installation tutorial
subscription-manager repos --enable = rhel-7-server-dotnet-rpms yum install scl-utils
yum install rh-dotnetcore11 scl enable rh-dotnetcore11 bash
After the installation is complete, you can run the following command to check whether the .NET Core environment was installed successfully.
dotnet new console -o hwapp cd hwapp dotnet restore dotnet run
If you see the final output "Hello World!", The .Net Core installation is successful.
Installation of NEO node
- Download the Neo-CLI package on Github and unzip it.
If you try to download and compile the Neo-CLI source directly on Github, you will find that
dotnet neo-cli.dll will run incorrectly after compiling, and you will need to copy libleveldb.dll and sqlite3.dll to the same directory as neo-cli.dll under. These two files can be downloaded in the first step of the package.
- On Linux, install the LevelDB and SQLite3 dev packages. E.g. on Ubuntu:
sudo apt-get install libleveldb-dev sqlite3 libsqlite3-dev
On Windows, use the Neo version of LevelDB.
- Open the command line, navigate to the program directory, enter the following code to start the NEO node.
Neo-CLI provides a series of APIs for external access. If you want to start the node while opening the API, you can run the following code.
dotnet neo-cli.dll /rpc
- If you want the external program to access the node API need to open the firewall port: 10331-10334, 20331-20334