-1
我在redhat工作7Tomcat的8卡塔利娜沒有啓動
我在/root/.bashrc中設置Java變量:
export JAVA_HOME=/usr/lib/jvm/jdk1.8.0_111/
export PATH=$JAVA_HOME/bin:$PATH
export JRE_HOME=/usr/lib/jvm/jdk1.8.0_111/jre
export CATALINA_BASE=/www/tomcat/iot
export CATALINA_HOME=/www/tomcat/iot
export CATALINA_TMPDIR=/www/tomcat/iot/temp
當我執行此
./catalina.sh run
Using CATALINA_BASE: /www/tomcat/iot
Using CATALINA_HOME: /www/tomcat/iot
Using CATALINA_TMPDIR: /www/tomcat/iot/temp
Using JRE_HOME: /usr/java/jdk1.8.0_111/jre
Using CLASSPATH: /www/tomcat/iot/bin/bootstrap.jar:/www/tomcat/iot/bin/tomcat-juli.jar
./catalina.sh: line 366: /usr/java/jdk1.8.0_111/jre/bin/java: No such file or directory
JRE_HOME不指向相同的路徑
作爲哪個用戶執行./catalina.sh運行? – Henry
@Henry,我以root用戶身份運行它 – ahmed
通過調用source〜/ .bashrc運行bashrc文件 –