问题
在关闭tomcat是提示(./shutdown.sh):
SEVERE: Could not contact localhost:8005. Tomcat may not be running.
Jul 20, 2018 3:17:45 PM org.apache.catalina.startup.Catalina stopServer
SEVERE: Catalina.stop:
java.net.ConnectException: Connection refused (Connection refused)
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSoc
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.j
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at java.net.Socket.connect(Socket.java:538)
at java.net.Socket.<init>(Socket.java:434)
at java.net.Socket.<init>(Socket.java:211)
at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:498)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorIm
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAc
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:34
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:430)
信息显示端口8005没有启动,同时命令查看进程端口
netstat -tunlp|grep 8005
netstat -tunlp|grep 8080
可以看到8080启动,8005没有启动。
解决方式
修改${JAVA_HOME}/jre/lib/security/Java.security
securerandom.source=file:/dev/random
改为:
securerandom.source=file:/dev/urandom
然后杀死8080的进程
kill -9 进程号
重启tomcat就可以访问了
评论 (0)