SEVERE: Could not contact localhost:8005.
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash
免费下载资源
·
背景:
在Linux中的启动Tomcat的时候无异常,但是通过脚本文件关闭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没有启动,同时命令查看进程端口
[root@iz2zef1jdvksldmo6hv6xez security]# netstat -tunlp|grep 8005
[root@iz2zef1jdvksldmo6hv6xez security]# netstat -tunlp|grep 8080
结果显示:8080启动,但是8005没有启动
解决
$JAVA_HOME/jre/lib/security/Java.security 文件中 securerandom.source 配置项
securerandom.source=file:/dev/random
改为:
securerandom.source=file:/dev/urandom
补充:vim中的快捷键
:/securerandom(检索关键字securerandom)
按u查找下一个关键字
修改完成后:如果8080端口已经启动了先,kill掉
kill -9 进程号
重新启动,检查是否启动成功
GitHub 加速计划 / li / linux-dash
10.39 K
1.2 K
下载
A beautiful web dashboard for Linux
最近提交(Master分支:2 个月前 )
186a802e
added ecosystem file for PM2 4 年前
5def40a3
Add host customization support for the NodeJS version 4 年前
更多推荐
已为社区贡献2条内容
所有评论(0)