TotalNET Advanced Server 5.2 Administration Guide

2.3 Changing the TNAS Port Number

If your system already uses the default port number, 7777, when you install TAS, the installation program searches for the port numbers 7778, then 7779, and so on, until it finds an available port. You can find the TNAS host name and port number in $TNHOME/etc/httpd/conf/httpd.conf.

Follow these steps to change the default TNAS port number from 7777 to a number of your choice:

  1. Access $TNHOME/etc/httpd/conf/httpd.conf, where $TNHOME represents /var/opt/totalnet or, for AIX, /var/totalnet.

  2. Find the line that begins with Port nnnn, where nnnn represents the port number.

  3. Change the port number to the number you want.

  4. Save the file.

  5. Use the following command:

    $TNHOME/usr/sbin/tnsystem -M -a tnas-port=nnnn
    
  6. Stop and restart TNAS with the following commands:

    $TNHOME/usr/sbin/tas.sh stop totaladmin
    $TNHOME/usr/sbin/tas.sh start totaladmin