Tomcat deploy new servers and applications javaweb

Playing on Javaweb Tomcat project package

(Reference blog: https://www.cnblogs.com/BraveApple/p/9578092.html )

1. Project to fight the war package, download the official tomcat

2.war webapp package into the path tomcat

3. Start the tomcat bin directory script startup.sh

4. If you need to close, is performed shutdown.sh

 

Step packaged java web project:

(Reference blog: https://www.cnblogs.com/BraveApple/p/9578092.html )

1. Select the items to be packaged right-click to select next after [export], search war, war file select [].

2. Enter the name of the war package web project, to generate input position storage destinations in war package inside, and then click finish.

 

 

If the newspaper the following exception:

(Reference blog: https: //www.cnblogs.com/samwang88/p/6655687.html)

Cannot find ./catalina.sh
The file is absent or does not have execute permission
This file is needed to run this program

Solution:

Execute this command in the bin directory of tomcat
chmod + x * .sh  
again executed by sh catalina.sh,

Then start successfully with sh startup.sh

 

Guess you like

Origin www.cnblogs.com/zhougongjin/p/11267611.html