反馈已提交

网络繁忙

Closing or Restarting the FineBI Project

  • Last update:  2023-03-28
  • Overview

    Version

    FineBI Version

    New Function

    6.0

    /

    Application Scenarios

    Before restarting the project, you need to completely shut down related processes.

    You want to close the project.

    Function

    This article introduces methods for shutting down and restarting projects in Tomcat, WebLogic, and WebSphere on Linux.

    Tomcat Container

    Example: The project is deployed under /home/wendy/tomcat-linux.

    Closing the Project

    1. Optimize the files.

    When deploying a project, you are recommended to optimize the following two files:

    • ${tomcat}/bin/catalina.sh file: Add CATALINA_PID=./CATALINA_PID under PRGDIR=`dirname "$PRG"`.

    • ${tomcat}/bin/shutdown.sh file: Change the last line to exec "$PRGDIR"/"$EXECUTABLE" stop -force "$@".

    2. Use the shutdown.sh script in Tomcat to shut down the container.

    Closing Remaining Processes

    When you close the container through the shutdown.sh script, you may encounter unclosed processes. You need to kill those processes by entering kill-9.

    1. Execute the following commands to view the project progress.

    ps -ef|grep tomcat-linux

    1617265472744533.png

    2. Kill the project process, and check whether there are unclosed project processes. All processes related to this project need to be killed.

    kill -9 31126

     1617265590986775.png

    Restarting the Project

    1. Go to the project bin directory and restart the project.

    cd /home/wendy/tomcat-linux/bin
    ./startup.sh

    1617266001285977.png

    2. Check the real-time log. If the consumed time is displayed in the real-time log, it means that you have restarted successfully.

    cd /home/wendy/tomcat-linux/bin
    tail -f catalina.out

    1617266270387055.png

    WebLogic Container

    Closing the Project

    1. Check the process number.

    ps -ef|grep weblogic

    1617268284394454.png

    2. Kill all processes related to this project, and check whether there remain unclosed processes.

    kill -9 113351
    kill -9 113352
    ps -ef|grep weblogic

    1617268858480984.png

    Restarting the Project

    Find the directory where startWebLogic.sh is located. The directory path for the example is: /web/weblogic/Oracle/Middleware/user_projects/domains. Go to this directory and restart the project.

    cd /web/weblogic/Oracle/Middleware/user_projects/domains
    nohup ./startWebLogic.sh &
    ps -ef|grep weblogic

    1661320534jyg1.png

    WebSphere Container

    Closing the Project

    1. Check the process number.

    ps -ef|grep WebSphere

    1617274236894892.png

    2. Kill all processes related to this project, and check whether there remain unclosed processes.

     1617274384753246.png

    Restarting the Project

    Find the path where startServer.sh is located. The directory path for the example is: /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin. Go to this directory and restart the project.

    cd /opt/IBM/WebSphere/AppServer/profiles/AppSrv01/bin
    ./startServer.sh server1
    ps -ef|grep webSphere

    1619341389565773.png

    Note: server1 is the name of the application server, and you can check it in the console. 

    附件列表


    主题: Deployment and Integration
    Previous
    Next
    • Helpful
    • Not helpful
    • Only read

    feedback

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

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

    不再提示

    10s后关闭