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.