question The tomcat container was successfully added using the docker run command. The port was also opened. I also tried to turn off the firewall, but it always displayed 404 when accessing the tomcat homepage. reason The default version of the tomcat image obtained using Alibaba Cloud is 8.5.51. Its webapps file is empty, and its welcome page is placed in the webapps.dist file. This is why we will access it incorrectly. Workaround Delete the original webapps or change its name to another one, and rename webapps.dist to webapps The steps are as follows: 1. Enter the interactive mode with tomcat in docker
2. Modify the directory
3. Exit interactive mode webappsroot@b3589cdf16cc:/usr/local/tomcat# exit Example: Access port 32768 in the host machine, which will be mapped to port 8080 of tomcat The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: React realizes the whole process of page watermark effect
>>: Essential bonus items for optimizing and packaging the front end of Vue projects
Purpose of using Nginx Using Alibaba Cloud ECS cl...
There are also two servers: Preparation: Set the ...
Google China has released a translation tool that ...
This article shares the specific code for WeChat ...
There are two types of Linux system time. (1) Cal...
Due to hardware reasons, the machines may not kee...
Without further ado, I will post the code for you...
1. What is a servlet 1.1. Explain in official wor...
question I encountered a problem when writing dat...
The vue part is as follows: <template> <...
This article example shares the specific code of ...
Promise is a new solution for asynchronous progra...
Table of contents 1. Rename table method 2. Notes...
How to uninstall MySQL database under Linux? The ...
View container logs First, use docker run -it --r...