linux下用shell for循环批量管理启动tomcat报环境变量问题
foriin`catip`;dossh$i"cd/home/tomcat/bin;shstartup.sh"&&echo$i;doneNeithertheJAVA_HOM...
for i in `cat ip`;do ssh $i "cd /home/tomcat/bin;sh startup.sh" &&echo $i;done
Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
At least one of these environment variable is needed to run this program
在跳板机上执行就报环境变量的问题,登录服务器后执行就没问题,求助!! 展开
Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
At least one of these environment variable is needed to run this program
在跳板机上执行就报环境变量的问题,登录服务器后执行就没问题,求助!! 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询