gpt4 book ai didi

linux - 我正在尝试创建 payara 集群,但在创建远程节点期间出现错误

转载 作者:太空宇宙 更新时间:2023-11-04 05:47:08 26 4
gpt4 key购买 nike

我正在尝试创建 payara 集群,但在创建远程节点期间遇到错误:

./asadmin create-node-ssh --nodehost 10.198.228.240  --sshkeyfile /root/.ssh/id_rsa --force true --install true computer2

Enter admin user name> admin
Enter admin password for user "admin">
Created installation zip /root/payara5/glassfish/domains/domain1/config/glassfish1664073687432568371.zip
Successfully connected to root@10.198.228.240 using keyfile /root/.ssh/id_rsa
Copying /root/payara5/glassfish/domains/domain1/config/glassfish1664073687432568371.zip (146575218 bytes) to 10.198.228.240:/root/payara5
Installing glassfish1664073687432568371.zip into 10.198.228.240:/root/payara5
jar command failed while installing glassfish on host 10.198.228.240. Command output bash: jar: command not found

Command install-node-ssh failed.

Remote command output: bash: jar: command not found
Command create-node-ssh executed successfully.

这个问题有解决办法吗?

jar command failed while installing glassfish on host 10.198.228.240. Command output bash: jar: command not found

最佳答案

解决办法是:1-将 jdj 的路径添加到/root/.bashrc : 导出 JAVA_HOME=/opt/java-jdk/jdk1.8.0_201 导出 PATH="$PATH:$JAVA_HOME/bin"2-源.bashrc3-检查女巫 jar 可执行 shell 是否尝试执行: $ 哪个 jar /opt/java-jdk/jdk1.8.0_201/bin/jar4-现在创建一个到/usr/bin 目录中的 jar 可执行文件的符号链接(symbolic link) # cd/usr/bin/ # ln -s/opt/java-jdk/jdk1.8.0_201/bin/jar # 哪个 jar /usr/bin/jar

之后从computer1创建node-ssh:

root@computer1:~/payara5/bin# ./asadmin create-node-ssh --nodehost computer2 --sshkeyfile/root/.ssh/id_rsa --force true --install tr​​ue computer2-node 输入管理员用户名 > admin 输入用户“admin”的管理员密码> 已在计算机 2 上成功安装 Payara。 命令create-node-ssh执行成功。

关于linux - 我正在尝试创建 payara 集群,但在创建远程节点期间出现错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54693084/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com