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
Table of contents When to use Structural branches...
mysqldump command Introduction: A database backup...
Preface MySQL 8.0.13 began to support index skip ...
This article uses examples to describe the add, d...
Preface I recently installed MySQL 5.7 and found ...
Today, the error "No input file specified&qu...
1. First, create a hello-world.cpp file The progr...
This article is just to commemorate those CSS que...
Get daily statistics When doing a project, you ne...
Most of this article refers to other tutorials on...
How to use the MySQL authorization command grant:...
Table of contents Overall Effect Listen for conta...
This article example shares the specific code of ...
Preface Using css to generate dotted lines is a p...
Table of contents 1. Forgot the root password and...