How to change and enter the tomcat directory in Linux to determine which port you are entering

 

If you're seeing this, you've successfully installed Tomcat. Congratulations!

change to

If you're seeing this, you've successfully installed Tomcat. Congratulations!------8082/8081/8080

The first step is to enter the tomcat file in linux /opt/tomecat/ tomcat-8080 /webapps/ROOT path 

The name tomcat-8080 is customized by me. You operate according to the actual situation, and the paths are probably similar.

 After entering the second step, ll or ls check what is in the current directory, and vim enters the index.jsp file

 

After entering the third step, find a paragraph similar to If you're seeing this, you've successfully installed Tomcat. Congratulations!, command i to edit, and add the corresponding port number you edited, or edit it as you like.

 Step 4: ESC to exit the command after editing

The fifth step command:    

 

        : wq! (Force to save and exit)

The sixth step is to re-run tomcat

The above are the steps to edit the tomcat directory.

 

 

 

Guess you like

Origin blog.csdn.net/m0_61615803/article/details/131310651