java.io.IOException: well-known file /tmp/.java_pid57600 is not secure: file should be owned by the current user (which is 0) but is owned by 122
at sun.tools.attach.LinuxVirtualMachine.checkPermissions(Native Method)
at sun.tools.attach.LinuxVirtualMachine.(LinuxVirtualMachine.java:93)
at sun.tools.attach.LinuxAttachProvider.attachVirtualMachine(LinuxAttachProvider.java:61)
at com.sun.tools.attach.VirtualMachine.attach(VirtualMachine.java:237)
at net.rebeyond.memshell.Attach.main(Attach.java:39)
原因是系统安装了多个tomcat版本的,本例中,pid57600是tomcat8的进程,使用命令:kill 57600即可解决问题。
Ubuntu 下tomcat well known file is not secure
最新推荐文章于 2023-05-29 11:30:00 发布