keytool错误bash:keytool:找不到命令

编程入门 行业动态 更新时间:2024-10-24 14:23:19
本文介绍了keytool错误bash:keytool:找不到命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我尝试从Java bin目录执行keytool但是我收到一个错误警告bash:keytool:command not found。

I have tried to execute keytool from Java bin directory but I get an error with warning bash: keytool: command not found.

root@xxxxxx]# keytool -genkey -alias mypassword -keyalg RSA bash: keytools: command not found

推荐答案

这些是解决我问题的步骤:

These are the steps which solved my problem:

  • 搜索安装我的java的路径

  • search the path where my java was installed

find / -name jre

  • 移动到java目录(我的服务器上安装了jre)

  • move to java directory (where jre was installed on my server)

    cd /path/to/jre/location

  • 使用keytool命令创建ssl证书

  • create ssl certificate with keytool command

    ./keytool -genkey -alias [mypassword] -keyalg [RSA]

  • 更多推荐

    keytool错误bash:keytool:找不到命令

    本文发布于:2023-10-13 10:30:05,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1487703.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:找不到   命令   错误   keytool   bash

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!