How to run the node

What you’ll need

  • JDK 1.8
  • Maven 3.3+
  • Git 2.x
  • IDE ( Optional )

Getting Source

$ git clone https://github.com/nuls-io/nuls.git && cd nuls

Build Source

Make sure the JDK version is 1.8

$ mvn -v
Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-18T02:33:14+08:00)
Maven home: /usr/local/Cellar/maven/3.5.4/libexec
Java version: 1.8.0_171, vendor: Oracle Corporation, runtime: /Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home/jre

If the Java version is not 1.8, it is recommended to install and set it to version 1.8.

Now,we can build the node.

$ mvn clean package

After the command is successfully executed, you can find the compilation result in the path.

client-module/client/target/nuls-node.tar.gz

Run Node

$ mvn clean package
$ cd client-module/client/target
$ mkdir nuls-node
$ tar -zxvf nuls-node.tar.gz -C nuls-node
$ cd nuls-node/bin
  • Using start.sh running the nuls process.
  • Using stop.sh stop the nuls process.
  • Using cmd.sh running the nuls shell.

Use IDEA

Import the project folder into the IDEA and set configurations.

图片