1, describe
After you configure a new project and modify the Tomcat Server.xml, execute the shutdow.sh script to shut down the server, prompting for the following error:
Tomcat Java.net.ConnectException:Connection refused
A lot of mistakes.
Searching the internet for a lap, a need to restart the server, this is not a bit, but said to be due to 8080 or 8009 ports are occupied caused shutdown failed, but did not resolve
Http://www.51test.net/show/365837.html
http://blog.csdn.net/subuser/article/details/6311184
2, solve
Online and have to solve practical problems, to provide my solution to the idea:
We ps-ef|grep Java
Find all Java process numbers
Kill-9 Process Number
Take the process out, except the username xxx xxx 0 20:56 pts/0 00:00:00 grep--color=auto java.
3, reboot
SH start.sh
normal;
4, Reasons and analysis
The reason is that the port is occupied, and so the possibility, it is that you shutdown, Execute the shutdown.sh script, and if the project at this time some database links and so on, so that Tomcat actually did not really shut down, it is not completely shut down, causing you to shutdown again when the error.
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.