What we've determined[]
As in Laptop configuration, we've assigned the following:
- Work directory: /home/postgresxc/pgxc/gtm
- Node name: gtm
- Port number: 20001
First, we create template of GTM as follows:
$ initgtm -Z gtm -D /home/postgresxc/pgxc/gtm $
initgtm creates template configuration file for gtm. For details, please visit initgtm document page.
Now you should add node name and port number to the configuration file, gtm.conf.
It is very simple. Do as follows:
$ cat >> /home/postgresxc/pgxc/gtm/gtm.conf << EOF nodename = 'gtm' port = 20001 EOF $
You can do the same thing using your favorite text editor like vi or emacs. With them, you will find many example lines of the configuration file.
You finished your GTM configuration. Very simple.