After linuxapche + resin is restarted, the web page still cannot be opened.

Source: Internet
Author: User
Tags website server
Recently, the website server has a high access volume, which often causes frequent server crashes. normally, restart the server and httpdshstophttpdstart will be finished. However, due to frequent such operations, suddenly one day, the website is still running after the server is restarted.

Recently, the website server has a high access volume, which often causes frequent server crashes. normally, restart the server,

./Httpd. sh stop./httpd start is complete. However, due to frequent operations such as this, the website cannot be opened one day after the server is restarted.

Run this command in the bin directory of the server.

./Httpd. sh-verbose

The following error occurs:

[10:52:41. 293] java.net. BindException: Address already in use
[10:52:41. 293] Can't bind to *: 80.

This indicates that port 80 is in use and the previous port 80 is not released.

Therefore, execute the following command:

Netstat-tunlp | grep: 80

The following result is displayed:

Tcp 0 0: 80: * LISTEN 12969/java

To kill this process, run the following command:

Kill-9 12969

Then execute

./Httpd. sh start

The website can be opened normally.

Related Article

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.