FineBI Version
New Function
6.0
/
Before restarting the project, you need to completely shut down related processes.
You want to close the project.
This article introduces methods for shutting down and restarting projects in Tomcat, WebLogic, and WebSphere on Linux.
Example: The project is deployed under /home/wendy/tomcat-linux.
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.
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
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
1. Go to the project bin directory and restart the project.
cd /home/wendy/tomcat-linux/bin./startup.sh
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/bintail -f catalina.out
1. Check the process number.
ps -ef|grep weblogic
2. Kill all processes related to this project, and check whether there remain unclosed processes.
kill -9 113351kill -9 113352ps -ef|grep weblogic
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/domainsnohup ./startWebLogic.sh &ps -ef|grep weblogic
ps -ef|grep WebSphere
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 server1ps -ef|grep webSphere
Note: server1 is the name of the application server, and you can check it in the console.
滑鼠選中內容,快速回饋問題
滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。
不再提示
10s後關閉
Submitted successfully
Network busy