当前位置: 技术问答>linux和unix
tomcat不能正常运行(以前可以,现在不行了)
来源: 互联网 发布时间:2014-10-28
本文导语: *我以前是安装成功的,最近为了使用oracle改了一下用户的组,并将tomcat所在的目录的访问权限也改了,就不能正常运行了。 .bash_profile的配置如下 JAVA_HOME=/usr/local/jdk:/usr/local/jre ;export JAVA_HOME CLASSPATH=/usr/local/jdk/lib:/u...
*我以前是安装成功的,最近为了使用oracle改了一下用户的组,并将tomcat所在的目录的访问权限也改了,就不能正常运行了。
.bash_profile的配置如下
JAVA_HOME=/usr/local/jdk:/usr/local/jre ;export JAVA_HOME
CLASSPATH=/usr/local/jdk/lib:/usr/local/jre/lib ;export CLASSPATH
PATH=$PATH:/usr/local/jdk/bin:/usr/local/jre/bin:/usr/bin ; export PATH
TOMCAT_HOME=/usr/local/tomcat ;export TOMCAT_HOME
运行/usr/local/tomcat/bin/startup.sh start报错:
Using ××classpath: /usr/local/tomcat/lib/ant.jar:/usr/local/tomcat/lib/jasper.jar:
/usr/local/tomcat/lib/jaxp.jar:/usr/local/tomcat/lib/parser.jar:/usr/local/tomca
t/lib/servlet.jar:/usr/local/tomcat/lib/test:/usr/local/tomcat/lib/webserver.jar
:/usr/local/jdk/lib:/usr/local/jre/lib
[webadmin@linux webadmin]$ /usr/local/tomcat/bin/tomcat.sh: /usr/local/jdk:/usr/
local/jre/bin/java: No such file or directory
.bash_profile的配置如下
JAVA_HOME=/usr/local/jdk:/usr/local/jre ;export JAVA_HOME
CLASSPATH=/usr/local/jdk/lib:/usr/local/jre/lib ;export CLASSPATH
PATH=$PATH:/usr/local/jdk/bin:/usr/local/jre/bin:/usr/bin ; export PATH
TOMCAT_HOME=/usr/local/tomcat ;export TOMCAT_HOME
运行/usr/local/tomcat/bin/startup.sh start报错:
Using ××classpath: /usr/local/tomcat/lib/ant.jar:/usr/local/tomcat/lib/jasper.jar:
/usr/local/tomcat/lib/jaxp.jar:/usr/local/tomcat/lib/parser.jar:/usr/local/tomca
t/lib/servlet.jar:/usr/local/tomcat/lib/test:/usr/local/tomcat/lib/webserver.jar
:/usr/local/jdk/lib:/usr/local/jre/lib
[webadmin@linux webadmin]$ /usr/local/tomcat/bin/tomcat.sh: /usr/local/jdk:/usr/
local/jre/bin/java: No such file or directory
|
检查/usr/local/jre/bin/java是否允许webadmin这个用户访问?同时需要检查是否允许他执行这条命令。