For work needs, I found a lot of information on the Internet, but all of them were copy and pasted, and did not solve the actual problem. It took me a long time to finally get it done. There are three ways: The first is to call the startup command line with startup parameters 1. Set in conf/server.xml as follows: port="${http.port}" 2. Set in bin/catalina.xml as follows: JAVA_OPTS="JAVA_OPTS" -Dhttp.port='50000'" (the port number you want to set) 3. Restart tomcat 4.IP+port access indicates successful setup 5. Finally, start Tomcat normally. You can see the calling method in the command line through the startup parameters. Summarize This is the end of this article about how to set the port through placeholders in Tomcat (i.e. parameter specification method). For more information about setting the port through placeholders in Tomcat, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Steps for restoring a single MySQL table
>>: vue-element-admin global loading waiting
1. First, understand the overflow-wrap attribute ...
1. Ubuntu Server 18.04.5 LTS system installation ...
How to quickly copy a table First, create a table...
Table of contents Layout part: <div id="a...
While the paperless world has not yet emerged, mo...
Table of contents Preface 1. What is phantom read...
Create a user: create user 'oukele'@'...
Today I found that a program inserted an incorrec...
Table of contents 1. this points to 2. Modify thi...
Today we will introduce several ways to use CSS t...
Experimental environment A minimally installed Ce...
As the title says: The height is known, the width...
lsof (list open files) is a tool to view files op...
Table of contents 1. Basic knowledge of indexing ...
In LINUX, periodic tasks are usually handled by t...