1、查看某一个端口是否开启
2、查看mysql服务是否开启
3、杀掉进程
netstat -nat|grep 3306
2、查看mysql服务是否开启
ps -ef|grep tomcat
3、杀掉进程
kill -9 PID
netstat -nat|grep 3306
ps -ef|grep tomcat
kill -9 PID