Resolves an issue in which the port occupancy in MyEclipse causes Tomcat to not start. (Linux)

Source: Internet
Author: User

This article originates from: Http://blog.csdn.net/svitter

Citation: http://www.2cto.com/os/201305/209285.html

{Ubuntu views the program that occupies a port to view port usage, using the netstat command. To view the connected service ports (establishednetstat-a View all service ports (listen,established) Netstat-ap view 8080 ports, you can combine the grep command: Netstat-ap | grep 8080 If you look at Port 8888, enter it in the terminal: lsof-i:8888 to stop the program using this port, use Kill + corresponding PID in "terminal", Run "top" command can see the task that occupies the most system resources, press "Q" exit. Run "PS aux" to see all the running tasks (the term "process"). If you want to find a specific process, you can run: PS aux | grep program name if you want to end the process, you can run: kill-9 process number (the process number is the 4-digit number of the second column you see when you run the PS command)}


Use lsof I: (The Tomcat port number you are using), then kill the corresponding PID.

This may be because the non-root user does not have special permissions, causing the previously opened service to be closed.



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.