Details TOP Build


After building K2HTPDTOR, you can check the operation by the following procedure.

Sample Configuration

The following is the configuration used for K2HTPDTOR and K2HTPDTORSVR test. please refer.

Configuration on the terminating server



It is the same configuration as K2HTPDTORSVR.

Configuration on the relay server to be retransmitted


slave node CHMPX for connecting to next server

server node CHMPX for receiving transaction

It is the same configuration as K2HTPDTORSVR.

K2HTPDTOR Configuration of the transfer source


Operation check

This operation confirmation is retransmitting the transaction.

1. Creating a usage environment

There are two ways to install K2HTPDTOR in your environment.
One is to download and install the package of K2HTPDTOR from
The other way is to build and install K2HTPDTOR from source code yourself.
These methods are described below.

Installing packages

The K2HTPDTOR publishes packages in - AntPickax stable repository so that anyone can use it.
The package of the K2HTPDTOR is released in the form of Debian package, RPM package.
Since the installation method differs depending on your OS, please check the following procedure and install it.

Debian(Stretch) / Ubuntu(Bionic Beaver)
$ sudo apt-get update -y
$ sudo apt-get install curl -y
$ curl -s | sudo bash
$ sudo apt-get install k2htpdtor chmpx
Fedora28 / CentOS7.x(6.x)
$ sudo yum makecache
$ sudo yum install curl -y
$ curl -s | sudo bash
$ sudo yum install k2htpdtor chmpx
Other OS

If you are not using the above OS, packages are not prepared and can not be installed directly.
In this case, build from the source code described below and install it.

Build and install from source code

For details on how to build and install K2HTPDTOR from source code, please see Build.

2. Start the CHMPX server node of the terminating host

$ chmpx -conf dtor_test_trans_server.ini

3. Start K2HTPDTORSVR of the terminating host

$ k2htpdtorsvr -conf dtor_test_trans_server.ini

4. Start CHMPX(slave node) connected to the terminating CHMPX on the relay host

$ chmpx -conf dtor_test_trans_slave.ini

5. Start CHMPX(server node) connected by the transfer source on the relay host

$ chmpx -conf dtor_test_server.ini

6. Start K2HTPDTORSVR on the relay host

$ k2htpdtorsvr -conf dtor_test_server.ini

7. Start CHMPX (slave node) connected to relay CHMPX on the transfer source host

$ chmpx -conf dtor_test_slave.ini

8. Start a test program that generates transactions on the source host

$ k2htpdtorclient -f -l -p dtor_test_slave.ini -c 1

This program is a test only program.
In this way you can confirm that the transaction has been transferred.

9. Exit all programs

Send signal HUP to all programs (chmpx, k2htpdtorsvr, k2htpdtorclient), and it will exit automatically.

Details TOP Build