Websocket ポートが占有されている

  • 作成者:ayuan0625
  • 編集回数:34次
  • 最終更新:ayuan0625 于 2020-12-18
  • I. Overview

    1) A number of functions in the decision-making platform relies on WebSocket.

    2) When the FineReport project is running, it will request connection to WebSocket. An error message as shown below will appear if the connection fails. 

    II. Solution using CentOS 7 as an Example

    1. Open the port for WebSocket

    If you deploy your FineReport project on one server (i.e. rather than a cluster), the default port for WebSocket are 38888, 39888 and 38889. You can try to open the ports one by one until you solve the problem.

    firewall-cmd --zone=public --add-port=38888/tcp --permanent   # Open port 38888 as the example

    firewall-cmd --zone=public --remove-port=38888/tcp --permanent  # Close port 5672firewall-cmd --reload   

    # Bring the configuration to effect at once


    2. Close the firewall

    firewall-cmd --state # Check the status of the firewall

    systemctl stop firewalld.service # Close the firewall

    Note

    • You can set an inbound rule for Windows

    • If you deploy your project on a cloud server, chances are that the connection still fails even if you close the firewall. This is because the service provider does not authorize the ports, and you need to open the 3 ports in the management page of the cloud server.


    Attachment List


    Theme: FineReport 管理ポータル
    • いいね
    • 良くない
    • 閲覧しただけ