For the best viewing experience, please turn your phone to portrait mode.

Lisk Core Source Installation

This section details how to install Lisk Core from Source. When completed, you will have a functioning node on the Lisk Network. If you are looking to upgrade your current Lisk Core installation, please see Upgrade from Source.

Login as the Lisk user

This user was created in the Prerequisites.
If you are already logged in to this user, please skip this step.

su - lisk

Installing Lisk from Source

Before proceeding, determine whether you wish to connect your node to the Mainnet (Main Network) or Testnet (Test Network).

git clone
cd lisk
git checkout v1.1.0 -b v1.1.0 # check out latest release tag
npm install

Please check for latest release on

To test that Lisk Core is built and configured correctly, issue the following command to connect to the network:

node app.js --network [network]

Where [network] might be either testnet or mainnet.

If the process is running correctly, no errors are thrown in the logs.
By default, errors will be logged in logs/lisk.log only. You can change the logging level in config.json.
Once the process is verified as running correctly, CTRL+C and start the process with pm2.
This will fork the process into the background and automatically recover the process if it fails.

pm2 start --name lisk app.js -- --network [network]

Where [network] might be either testnet or mainnet.

For details on how to manage or stop your Lisk node, please have a look in Administration from Source.

If you are not running Lisk locally, you will need to follow the Configuration - API document to enable access.

With all of the above steps complete you are ready to move on to the configuration documentation if you wish to enable forging or SSL.
Please see General Configuration for more information.

Post-installation (optional)

Logrotate Setup

It is recommended to setup a log rotation for the logfile of Lisk Core.


Ubuntu systems provide a service called logrotate for this purpose.
Please ensure Logrotate is installed on your system:

logrotate --version

Next, go to the logrotate config directory and create a new logrotate file for Lisk Core:

cd /etc/logrotate.d
vim lisk

Inside this file, define the parameters for the log rotation.

Example values:

/path/to/lisk/logs/*.log { 
        daily                   # daily rotation
        rotate 5                # keep the 5 most recent logs
        maxage 14               # remove logs that are older than 14 days
        compress                # compress old log files
        delaycompress           # compress the data, after it has been moved
        missingok               # if no logfile is present, ignore
        notifempty              # do not rotate empty log files

After customizing the config to fit your needs and saving it, you can test it by doing a dry run:

sudo logrotate /etc/logrotate.conf --debug

What's next?