Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Section


Column
width35%


Panel
borderColor#CCCCCC
bgColor#FFFFFF
titleBGColor#F0F0F0
borderStylesolid
titleOn this page:
Table of Contents



Column


After Axxon Next

...

is installed, you can change the port range for Servers,

...

the NativeBL core port number, and the PostgreSQL database port

...

(see Ports used by the Axxon Next Software Package).

Changing the NativeBL port number

To change the NativeBL port number, create an NGP_NATIVE_BL_PORT system variable, and set its value to the required port number (see Appendix 10. Creating system variable).

Changing the Server port range

To change the port range for a Server, use the Network settings utility (see Network settings utility).

Changing the PostgreSQL database port

In Axxon Next 4.5.0, the default PostgreSQL database port is changed to 20110. When upgrading from previous versions (see Update), the old port 49998 remains.

You can change the port in 2 ways:

  1. Completely remove Axxon Next and PostgreSQL with all data.
  2. Change the configuration.

Changing the PostgreSQL database port by removing Axxon Next completely

To do this:

  1. Remove Axxon Next without saving the configuration (see Removal).
  2. Remove PostgreSQL.
  3. Delete all folders with PostgreSQL.NGP in their names in the С:\Program Files\Common Files\AxxonSoft\ folder.
  4. Delete the HKEY_LOCAL_MACHINE\SOFTWARE\PostgreSQL\ registry section.
  5. Restart the computer.
  6. Install Axxon Next (see Installation).
Changing the PostgreSQL database port in the configuration

If it is necessary to change the PostgreSQL database port and at the same time save the system and database configuration, then do the following:

  1. Run the command line as Administrator.
  2. Stop Axxon Next services:

    Code Block
    powershell -Command "get-service NGP_* | stop-service"


  3. Stop PostgreSQL service:

    Code Block
    powershell -Command "get-service postgresql* | stop-service"


  4. Open the postgresql.conf configuration file in the editor, located in the C:\Program Files\Common Files\AxxonSoft\PostgreSQL.NGP\Data folder.
  5. Find the line port = 49998 and change the port value to 20110.
  6. Save changes to the file.
  7. Open the Registry Editor and go to the HKLM\SOFTWARE\PostgreSQL\Services\postgresql-9.5 section. The version number in the section name may differ from 9.5.
  8. Change the value of the Port parameter from 49998 to 20110.
  9. On the command line, run the following commands in sequence:

    Info
    titleNote

    The first two commands use the default Axxon Next installation paths (see Installation). If other paths are used, then it is necessary to change the commands.


    Code Block
    set CONFIG_PATH=C:\ProgramData\AxxonSoft\AxxonNext


    Code Block
    set InstallDir=C:\Program Files\AxxonSoft\AxxonNext


    Code Block
    cd "%CONFIG_PATH%\Config.local\config_repo\EventDatabase.0\"


    Code Block
    powershell -Command "(gc main.conf) -replace '<port>49998</port>', '<port>20110</port>' | Out-File -encoding ASCII main.conf"


    Code Block
    cd "%CONFIG_PATH%\Config.local\config_repo\"


    Code Block
    "%InstallDir%\bin\hg.exe" commit --verbose "--message=change DB port" --user "Manual change DB" -- EventDatabase.0/main.conf


    Code Block
    cd "%CONFIG_PATH%\Config.local\clone_config_repo\EventDatabase.0\"


    Code Block
    powershell -Command "(gc main.conf) -replace '<port>49998</port>', '<port>20110</port>' | Out-File -encoding ASCII main.conf"


    Code Block
    cd "%CONFIG_PATH%\Config.local\clone_config_repo\"


    Code Block
    "%InstallDir%\bin\hg.exe" commit --verbose "--message=change DB port" --user "Manual change DB" -- EventDatabase.0/main.conf


  10. If there is a main.conf file in the C:\ProgramData\AxxonSoft\AxxonNext\Config.local\config_repo\ObjectSearcher.0 folder, and there is a <port>49998</port> parameter in this file, then run the following commands in sequence:

    Code Block
    cd "%CONFIG_PATH%\Config.local\config_repo\ObjectSearcher.0\"
    powershell -Command "(gc main.conf) -replace '<port>49998</port>', '<port>20110</port>' | Out-File -encoding ASCII main.conf"


    Code Block
    cd "%CONFIG_PATH%\Config.local\config_repo\"
    "%InstallDir%\bin\hg.exe" commit --verbose "--message=change DB port" --user "Manual change DB" -- ObjectSearcher.0/main.conf


    Code Block
    cd "%CONFIG_PATH%\Config.local\clone_config_repo\ObjectSearcher.0\"
    powershell -Command "(gc main.conf) -replace '<port>49998</port>', '<port>20110</port>' | Out-File -encoding ASCII main.conf"


    Code Block
    cd "%CONFIG_PATH%\Config.local\clone_config_repo\"
    "%InstallDir%\bin\hg.exe" commit --verbose "--message=change DB port" --user "Manual change DB" -- ObjectSearcher.0/main.conf

    If there is no main.conf file in the folder, or if the port parameter is missing in the file, then skip this step.

  11. If there is a main.conf file in the C:\ProgramData\AxxonSoft\AxxonNext\Config.local\config_repo\RealtimeRecognizer.0 folder, and there is a <port>49998</port> parameter in this file, then run the following commands in sequence:

    Code Block
    cd "%CONFIG_PATH%\Config.local\config_repo\RealtimeRecognizer.0\"
    powershell -Command "(gc main.conf) -replace '<port>49998</port>', '<port>20110</port>' | Out-File -encoding ASCII main.conf"


    Code Block
    cd "%CONFIG_PATH%\Config.local\config_repo\"
    "%InstallDir%\bin\hg.exe" commit --verbose "--message=change DB port" --user "Manual change DB" -- RealtimeRecognizer.0/main.conf


    Code Block
    cd "%CONFIG_PATH%\Config.local\clone_config_repo\RealtimeRecognizer.0\"
    powershell -Command "(gc main.conf) -replace '<port>49998</port>', '<port>20110</port>' | Out-File -encoding ASCII main.conf"


    Code Block
    cd "%CONFIG_PATH%\Config.local\clone_config_repo\"
    "%InstallDir%\bin\hg.exe" commit --verbose "--message=change DB port" --user "Manual change DB" -- RealtimeRecognizer.0/main.conf

    If there is no main.conf file in the folder, or if the port parameter is missing in the file, then skip this step.

  12. If there is a main.conf file in the C:\ProgramData\AxxonSoft\AxxonNext\Config.local\config_repo\VMDA2_DB.0 folder, and there is a <port>49998</port> parameter in this file, then run the following commands in sequence:

    Code Block
    cd "%CONFIG_PATH%\Config.local\config_repo\VMDA2_DB.0\"
    powershell -Command "(gc main.conf) -replace '<pg_port>49998</pg_port>', '<pg_port>20110</pg_port>' | Out-File -encoding ASCII main.conf""


    Code Block
    cd "%CONFIG_PATH%\Config.local\config_repo\"
    "%InstallDir%\bin\hg.exe" commit --verbose "--message=change DB port" --user "Manual change DB" -- VMDA2_DB.0/main.conf


    Code Block
    cd "%CONFIG_PATH%\Config.local\clone_config_repo\VMDA2_DB.0\"
    powershell -Command "(gc main.conf) -replace '<pg_port>49998</pg_port>', '<pg_port>20110</pg_port>' | Out-File -encoding ASCII main.conf"


    Code Block
    cd "%CONFIG_PATH%\Config.local\clone_config_repo\"
    "%InstallDir%\bin\hg.exe" commit --verbose "--message=change DB port" --user "Manual change DB" -- VMDA2_DB.0/main.conf

    If there is no main.conf file in the folder, or if the port parameter is missing in the file, then skip this step.

  13. Run the PostgreSQL service:

    Code Block
    powershell -Command "get-service postgresql* | start-service"


  14. Run the Axxon Next services:

    Code Block
    powershell -Command "get-service NGP_* | start-service"