宝塔用户_fliwaz 发表于 2021-1-28 18:18:50

【已解答】tomcat启动时有两个进程,一个是root,一个是www...

tomcat启动时有两个进程,一个是root,一个是www用户,怎么解决?

大炮运维V587 发表于 2021-1-28 18:37:04

您好,一个是tomcat本身的,一个是网站的

宝塔用户_fliwaz 发表于 2021-1-29 09:16:58

是的,就是因为有两个进程,所以应用程序会报错:        java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load []. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.

如果我是在后台启动的话,只有一个tomcat进程,就可以访问。

大炮运维V587 发表于 2021-1-30 10:27:24

宝塔用户_fliwaz 发表于 2021-1-29 09:16
是的,就是因为有两个进程,所以应用程序会报错:        java.lang.IllegalStateException: Illegal access: this ...

如果你使用的是面板上的tomcat默认配置文件,不会出现这个异常错误的。你看下有没有修改过 server.xml
页: [1]
查看完整版本: 【已解答】tomcat启动时有两个进程,一个是root,一个是www...