linux-配置Java环境

启动tomcat服务:sh startup.sh或./startup.sh
关闭tomcat服务:./shutdown.sh

linux 下启动tomcat
问题1:

[root@test233 bin]# sh startup.sh 
Cannot find ./catalina.sh
The file is absent or does not have execute permission
This file is needed to run this program

 解决办法:
给.sh文件授权

[root@test233 bin]#  chmod +x *.sh  

 问题2:

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

 解决方法:

检查Java环境

1.上传Linux环境下的jdk

2.解压jdk文件

3.编辑.bash_profile文件 vim /root/.bash_profile

猜你喜欢

转载自www.cnblogs.com/lijianda/p/11602474.html
今日推荐