Tomcat may not be running

一、问题背景

tomcat7运行在JDK1.7上,可启动tomcat,但是停止时报错误,如下:

二、适用条件

JDK1.7/JDK1.8

tomcat7

三、解决方法

1、查找java路径

which java

2、修改文件

找到/usr/lib/jvm/jdk1.7.0_80/jre/lib/security/java.security文件,修改内容:

securerandom.source=file:/dev/./urandom

3、重启服务器

tomcat就可以启动、停止了

相关推荐
Hello World......37 分钟前
互联网大厂Java面试:从Spring到微服务的全面探讨
java·spring boot·spring cloud·微服务·面试·技术栈·互联网大厂
拾贰_C2 小时前
【SpringBoot】MyBatisPlus(MP | 分页查询操作
java·spring boot·后端·spring·maven·apache·intellij-idea
猛踹瘸子那条好腿の2 小时前
Spring-boot初次使用
java·springboot
我不是程序猿儿4 小时前
【C#】 lock 关键字
java·开发语言·c#
tmacfrank5 小时前
网络编程中的直接内存与零拷贝
java·linux·网络
weixin_472339466 小时前
Maven 下载安装与配置教程
java·maven
Magnum Lehar6 小时前
3d游戏引擎EngineTest的系统实现3
java·开发语言·游戏引擎
就叫飞六吧7 小时前
Spring Security 集成指南:避免 CORS 跨域问题
java·后端·spring
Mcworld8577 小时前
java集合
java·开发语言·windows
天黑请闭眼7 小时前
IDEA:程序编译报错:java: Compilation failed: internal java compiler error
java·intellij-idea