A workaround for the Tomcat port number being occupied or modifying the port number

Source: Internet
Author: User

a) Modify the port number:find the Server.xml inside the Conf in the Tomcat filein the file after Tomcat decompression, follow the action Open the fileafter the file is opened ( e.g. ) Tomcat default 8080 port, the system default configurationModify the Tomcat server-initiated port to port 8081This will change the original port to port 8081, but after modifying the configuration file (*.xml), the Tomcat server will rebootto modify the previous port number:the port number after modification:after reboot: Access to the Tomcat server must also be accessed with the new Access port: http://localhost:8081/, as shown in:II) The problem with the Tomcat port being occupied1) Open cmd (enter cmd in the menu)2) Open after input command: Netstat-anoExample:3) Find the port number to see if there are 8080 ports occupied 4) Right-click on the taskbar in the lower left corner of the computer , then tap task management 5) Find 8080 corresponding process number, end the process can solve the problem 6) Access to the Tomcat server must also be accessed with the new Access port: http://localhost:8081/, as shown in:

A workaround for the Tomcat port number being occupied or modifying the port number

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.