Configuring Port Numbers

Changing WildFly Port

You can change PC-lint Plus View server port number after installation. With PC-lint Plus View server running, simply execute the following command:

<PCLPVIEW_HOME>/bin/sqadm wildfly network --bind-offset n

Where:

  • n, is the binding port offset (default is 100).

The offset is the value added to the default WildFly port values:

  • 100 (default): http: 8180, https: 8543, management: 10090

  • 200: http: 8280, https: 8643, management: 10190

  • 300: http: 8380, https: 8743, management: 10290

See sqadm wildfly network manpage to know more.

Changing PostgreSQL Port

You can change the port used by the PC-lint Plus View database by editing PostgreSQL’s configuration file and modifying PC-lint Plus View server’s <PCLPVIEW_HOME>/server/standalone/configuration/standalone.xml to point to the new port. The procedure involves modifying some configuration files in a text editor and restarting the server.

  1. Shutdown PC-lint Plus View server and stop the database

  2. Open <CLUSTER_DIR>/postgresql.conf in a text editor and search for the line where the port option is defined:

    port = 4661     # (change requires restart)
  3. Change the port value to the desired one for your system

  4. Open <PCLPVIEW_HOME>/server/standalone/configuration/standalone.xml in a text editor and search for the database connection URL:

    <connection-url>jdbc:postgresql://localhost:4661/pclpview</connection-url>
  5. Change the port value to match the change you made in <CLUSTER_DIR>/postgresql.conf.

  6. Start PC-lint Plus View server.

If you do not know where <CLUSTER_DIR> is located on your server, you can find its location by reading the value of the cluster setting in <PCLPVIEW_HOME>/config.xml.

Changing PhantomJS Port

The port used by PhantomJS can be changed by editing <PCLPVIEW_HOME>/config.xml to change the port value in the following line:

<phantomjs>
	<socket-binding port="3103"/>
</phantomjs>

After changing the port, restart PC-lint Plus View server for the changes to take effect.