In linux, the socket port cannot be released-Linux Enterprise Application-Linux server application information. For more information, see. My workflow contains an Instant Messaging Server deployed under tomcat. After tomcat is started in a linux system, the server is started and the specified socket port is in the listening state. However, when tomcat is stopped, the socket cannot be released. The same applications are normal in windows.
A) run the "/tomcat/bin/catalina. sh run" command when starting the Message Server in linux. If it is in the bin directory, run "./catalina. sh run ". When the message service ends, press Ctrl + C. Other commands are not allowed.
B) If you log on to the software remotely, the Operation window may be closed. The Ctrl + C shortcut key is not supported. Run the following command:
Lsof? 9888 in I: 9888 is the occupied socket port number.
4495 in kill-9 4495 is the value of the pid column displayed by the lsof command, that is, the process number.
The service can be started normally after execution.
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