美文网首页
centos下查看Java安装路径

centos下查看Java安装路径

作者: 毛仑上保罗先生 | 来源:发表于2022-05-13 09:10 被阅读0次
    [root@localhost ~]# which java
    /usr/bin/java
    [root@localhost ~]# ls -lrt /usr/bin/java
    lrwxrwxrwx. 1 root root 22 5月  13 09:04 /usr/bin/java -> /etc/alternatives/java
    [root@localhost ~]# ls -lrt /etc/alternatives/java
    lrwxrwxrwx. 1 root root 73 5月  13 09:04 /etc/alternatives/java -> /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.322.b06-1.el7_9.x86_64/jre/bin/java
    [root@localhost ~]# ls -lrt /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.322.b06-1.el7_9.x86_64/jre/bin/java
    -rwxr-xr-x. 1 root root 8984 1月  28 02:05 /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.322.b06-1.el7_9.x86_64/jre/bin/java
    
    

    通过最后ls -lrt /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.322.b06-1.el7_9.x86_64/jre/bin/java无法定位到新的链接了就是到头了

    `

    相关文章

      网友评论

          本文标题:centos下查看Java安装路径

          本文链接:https://www.haomeiwen.com/subject/pzeyurtx.html