[Mark] Tomcat/iis changing the HTTP listening port

Source: Internet
Author: User

Objective:

    • IIS HTTP listening port changed to 8088
    • Tomcat HTTP listening port changed to 80


Environment:

    • Windows Server R2
    • IIS8.5 (default port is 80)
    • Tomcat8.0 (default port is 8080)
    • SQL Server 2014


Expected:

    • Turn off the IIS service, modify the listening port of the HTTP protocol, restart IIS
    • Modify the listening port of the Tomocat HTTP protocol to restart Tomcat

But that's too easy ...

According to the above-mentioned steps simple operation, the direct http://localhost but can not display the Tomcat Management page, should be the Tomcat service failed to start, the cause of the failure should be the reason for the port change, look at the boot log is probably because the 80 port is occupied.

So the thing to do is:

    • View 80 Port Usage
    • Find a service or app that uses 80 ports
    • Disable these services or apps
    • Restart Tomcat

Here is my operation on the virtual machine, simple water:

At this point, the IIS port has been modified.

At this point, the Tomcat port has been modified.

Test:

Tomcat failed to start. Based on the boot log, port 80 has been occupied, so Netstat–aon|findstr "80" To view the port usage, found a process number (PID) is 4 of the process occupied 80 port:

Tasklist |findstr "4" to confirm which process, originally the system (NT Kernel & System), Baidu a bit, said to be related to HTTP. Sys, think also, according to the principle of IIS operation, The HTTP. Sys used to listen for the request is actually running in kernel mode.

netsh http show servicestat view the status of services that are currently using HTTP, perhaps they cause 80 to still be occupied:

Find these are still using IIS? Service, turn it off: (PS: Do not know the reportingservice of SQL in this How to become the murderer, know Bo friends please tell! )

Looking again at port 80 usage, it seems that no other process has taken up 80 ports:

To test again:

At this point, Tomcat started successfully and port modification succeeded

[Mark] Tomcat/iis changing the HTTP listening port

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.