jmap command not found

前端 未结 8 2151
名媛妹妹
名媛妹妹 2021-02-12 11:42

I\'m trying to use the jmap command on my CentOS server but it keeps telling me that the command was not found even though I have the JDK installed.

8条回答
  •  误落风尘
    2021-02-12 11:47

    My situation was a little strange (running inside the openjdk:8-jre Docker image), but this combination worked

    cat /etc/debian_version # 8.6
    apt install -t jessie-backports openjdk-8-jre-headless ca-certificates-java
    apt-get install -f -y openjdk-8-jdk-headless
    apt-get install -f -y openjdk-8-dbg
    

提交回复
热议问题