本文介绍了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:找不到命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!