Installation of Tomcat, modify the default port number 8080, the query port number command

Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/MacWx/article/details/90899316

Tomcat is a server, a computer is more than able to provide services at the same time. By the superior performance of computer hardware and can monitor user requests, to provide users with services software components!

Tomcat is very simple to use, only need to install the package and extract to a folder can be used directly . After extracting the project directory as well as its role is to:
Tomcat project directory and the role of
Start Tomcat
click on /bin/startup.bat. Run the batch file can be run there will be a black screen appears a lot of things, a lot of things shown in the figure appears and with no error message is started successfully.
Note that the following have the Starting ProtocolHandler [ "http-apr- 8088"]. This sentence means that the port number of the current start tomcat occupied . Finally, that number Server startup in 2674 ms This is the time to start tomcat used!
Tomcat

I have modified this is after the start port number, Tomcat is a need to modify the port to find the server.xml file in the Tomcat installation directory conf folder , find the open about 69th or 70th line, find the label, the inside of the port reform you want to use a random port numbers and not occupied and does not conflict with other software!
Here Insert Picture Description
If the problem is not properly start tomcat start under normal circumstances are conflict because the port number is occupied or java JDK environment variable configuration errors.
If that does not solve the problem so that the file can be started startup.bat use Notepad to open, plus one in the back end of the end: pause
and then prescribe the right medicine to solve the problem according to the error message can be friends!

Finally, attach a query method this machine all the port numbers and their corresponding software:

Enter at windows CMD command netstat -ano command, then there will be all you native port numbers,
Query port number command
go to the Task Manager can find the corresponding software and port number according to pid.

Guess you like

Origin blog.csdn.net/MacWx/article/details/90899316