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
Download foreign images using Alibaba Cloud Image...
This article analyzes the process of shutting dow...
Why doesn't your height:100% work? This knowl...
Table of contents 1. Introducing Typescript 2. Co...
In daily development tasks, we often use MYSQL...
A certain distance can be set between cells in a ...
1. Download and decompress 1. Introduction to Zoo...
Click here to return to the 123WORDPRESS.COM HTML ...
Because the router at home forced to reduce the b...
Step 1: Download the mysql driver cmd enters the ...
Preface When I went to an interview at a company ...
1. HTML Overview 1.HTML: Hypertext Markup Languag...
1. Go to Vim's official website to download t...
As shown below: Copy the remote server's file...
Project scenario: 1. Upload file restrictions Fun...