Klaytn Docs
Search…
⌃K

Installation Guide

You can download the latest version of the kcn on Download page.

Linux Archive Distribution

The archive file consists of the executable binary and the configuration file structured as follows.
Note: Do NOT alter the file structure or file name. If you change it, the node may not function correctly.
- bin
|- kcn
|- kcnd
- conf
|- kcnd.conf
File Name
File Description
bin/kcn
CN executable file
bin/kcnd
CN start/termination script file
conf/kcnd.conf
CN configuration file

Installation

The installation is the uncompression of the downloaded package where you want to install the package.
$ tar zxf kcn-vX.X.X-linux-amd64.tar.gz
Or,
$ tar zxf kcn-baobab-vX.X.X-linux-amd64.tar.gz
Note: it is recommended that the uncompressed directory kcn-linux-amd64/bin path should be added to the environment variable $PATH to run the kcn and kcnd globally. As an example,
$ export PATH=$PATH:~/downloaded/path/kcn-linux-amd64/bin
The other sections assume that the path is added to the variable.

RPM Distribution (RHEL/CentOS/Fedora)

Install downloaded RPM

You can install the downloaded RPM file with the following yum command.
$ yum install kcnd-vX.X.X.el7.x86_64.rpm
Or,
$ yum install kcnd-baobab-vX.X.X.el7.x86_64.rpm

Install from Klaytn Yum Repo

Alternatively, you can install kcnd from the Klaytn Yum repo, run:
$ sudo curl -o /etc/yum.repos.d/klaytn.repo https://packages.klaytn.net/config/rhel/7/prod.repo && sudo yum install kcnd

Installed Location

The installed files are located as follows.
File Name
Location
kcn
/usr/bin/kcn
kcnd.conf
/etc/kcnd/conf/kcnd.conf