Modifying the FineBI Project Port Number

  • Last update:  2023-09-25
  • Overview

    Version

    FineBI Version
    Functional Change

    6.0

    /

    Functions

    Multiple projects may be deployed on one server at the same time. Their default port numbers may conflict with each other.

    To ensure that each project can operate and run properly, you need to check whether ports are occupied and modify port numbers before FineBI startup as admin.

    Default Port

    The default occupied ports vary depending on deployment methods and containers. The following table describes the details.

    Deployment Method
    Default Port

    Direct deployment in Windows/Linux systems

    37799

    Deployment on the Tomcat server

    8080

    Deployment on the WebLogic server

    7001

    Deployment on the WildFly (JBoss) server

    8080

    Deployment on the WebSphere server

    9060

    Deployment on the Resin server

    8080

    Deployment on the JBoss server

    8080

    Checking Whether the Default Port Is Occupied

    Check whether the default port is occupied.

    Linux System

    Method 1: lsof

    Command: losf -i:{Port number}

    Description: used to check whether a specified port is occupied.

    Example: Run the lsof -i:8080 command to check whether port 8080 is occupied. As shown in the following figure, port 8080 is occupied by a Java process whose PID is 22936.

    Method 2: netstat

    Command: netstat -tunlp|grep {Port number}

    Description: used to check whether a specified port is occupied.

    Example: Run the netstat -tunlp|grep 8080 command to check whether port 8080 is occupied. As shown in the following figure, port 8080 is occupied by a Java process whose PID is 22936.

    Windows System

    Command: netstat -aon|findstr "{Port number}"

    Description: used to check whether a specified port is occupied.

    Example: Run the netstat -aon|findstr "8075" command to check whether port 8075 is occupied. As shown in the following figure, PIDs of processes occupying ports are listed in the last column. You can check the application corresponding to the required PID in Task Manager.

    Modifying the Project Port

    iconNote:
    Only root users have permission to occupy ports below 1024 in Linux. Therefore, you are advised to change the Tomcat port number to above 1024 in Linux, such as 8081 and 8082.

    Modifying the Local Trial Project Port

    1. Closing the FineBI Project

    Ensure that FineBI is closed before modifying the port.

    2. Modifying the Configuration File

    Open the server.xml file under the FineBI installation directory %FineBI%\server\conf through Notepad or code editors, as shown in the following figure.

    Modify the value of Connector port and save the file.

    3. Restarting the FineBI Project

    Restart FineBI and access it through http://IP address:New port number/webroot/decision.

    Modifying the Port on the Tomcat Server

    1. Closing the FineBI Project

    Ensure that FineBI is closed before modifying the port.

    2. Modifying the Configuration File

    Open the server.xml file under the Tomcat installation directory %tomcat_home%\conf through Notepad or code editors, as shown in the following figure.

    • Modifying the HTTP Port

    The HTTP port is one processing HTTP requests, which can be used to create HTTP connection, such as browser access.

    The default HTTP port number is 8080.

    • Modifying the SHUTDOWN Port

    The SHUTDOWN port is one accepting the SHUTDOWN command, which can be used to disable the server.

    If multiple Tomcats exist on the same server, you need to modify the SHUTDOWN port (default port number: 8005).

    • Modifying the AJP Port

    The AJP port is a processing port accepting AJP, which can be used to listen on requests from other servers.

    If multiple Tomcats exist on the same server, you need to modify the AJP port (default port number: 8009).

    3. Restarting the Tomcat Server

    Restart the Tomcat server and access FineBI through http://IP address:New port number/webroot/decision.

    Modifying the Port on the WebLogic Server

    1. Closing the FineBI Project

    Ensure that FineBI is closed before modifying the port.

    2. Accessing the WebLogic Console as Admin

    • Start the domain service.

    • Access the WebLogic console through browser addresses, such as http://<WebLogicServer>:7001/console.

    • Enter admin's username and password to log in.

    3. Modifying the Listening Port

    Choose Environment > Servers in Domain Structure on the right of the console. Select the server whose port needs to be modified.

    1.png

    Modify the listening port (specified by Listen Port). The default port number is 7001. Click Save, as shown in the following figure.

    2.png

    4. Restarting the WebLogic Server

    Restart the WebLogic server and access FineBI through http://IP address:New port number/webroot/decision.

    Modifying the Port on the WebSphpere Server

    1. Closing the FineBI Project

    Ensure that FineBI is closed before modifying the port.

    2. Accessing the WebSphere Console as Admin

    • Start the domain service.

    • Access the WebSphere console through browser addresses, such as http://<WebSphereServer>:9060/ibm/console.

    • Enter admin's username and password to log in.

    3. Modifying the WC_defaulthost Port

    Choose Servers > WebSphere application servers in the navigation bar on the left of the console. Select the server whose port needs to be modified.

    Choose Communications > Ports and click WC_defaulthost, as shown in the following figure.

    3.png

    4.png

    5.png

    Set the port number as needed in the pop-up configuration window and then click Apply, as shown in the following figure.

    6.png

    4. Configuring a Virtual Host

    Choose Environment > Virtual hosts in the navigation bar on the left of the console. Select default_host in the resource list.

    Click Host Aliases under Additional Properties and then click New..., as shown in the following figure.

    7.png

    8.png

    9.png

    Set Host Name and Port to required values, for example, * and 80, respectively.

    10.png

    5. Restarting the WebSphere Server

    Restart the WebSphere server and access FineBI through http://IP address:New port number/webroot/decision.

    Modifying the Port on the JBoss Server

    1. Closing the FineBI Project

    Ensure that FineBI is closed before modifying the port.

    2. Modifying the Port Number

    Modify the port number in the standalone.xml file under the %JBoss_HOME%\standalone\configuration directory, as shown in the following figure.

    3. Restarting the JBoss Server

    Double-click %JBoss_HOME%\bin\standalone.bat to restart WildFly.

    Restart the WebSphere server and access FineBI through http://IP address:New port number/webroot/decision.

    Notes

    Tomcat port modification may be invalid or not take effect. You can follow the steps below for troubleshooting:

    1. Check whether the port is occupied.

    2. Modify the startup.bat file under the %Tomcat_HOME%\bin directory.

    Run the rem command turn the line "%CATALINA_HOME%" == "" goto gotHome into a comment, as shown in the following figure.

    Save the file. The port modification will take effect after Tomcat server restart.

    Attachment List


    Theme: 暂存
    前の記事
    次の記事
    • いいね
    • 良くない
    • 閲覧しただけ

    フィードバック

    鼠标选中内容,快速反馈问题

    鼠标选中存在疑惑的内容,即可快速反馈问题,我们将会跟进处理。

    不再提示

    9s后关闭

    反馈已提交

    网络繁忙