我在Centos7和Google上安装了Tomcat。Tomcat工作,但我无法访问Tomcat管理器页面。
My /opt/tomcat/conf/tomcat-users.xml
/opt/tomcat/webapps/manager/META-INF/context.xml
/opt/tomcat/webapps/host-manager/META-INF/context.xml
我有一个CentOS 6.3服务器和cPanel。我想安装tomcat 6(而不是cPanel支持的5.5 )。
当我试着:
yum -y install tomcat6 tomcat6-webapps tomcat6-admin-webapps
我得到了错误:(全面查看)
Error: Package: jakarta-taglibs-standard-1.1.1-11.4.el6.noarch (base)
Requires: apache-tomcat-apis
You could try using --skip-broken to work around the problem
**
我从Linux服务器(CentOS)中删除了几个Tomcat安装。在安装Tomcat 8之后,现在当我尝试启动Tomcat 8 (./startup.sh)时,会出现以下错误:
Cannot find /opt/apache-tomcat-7.0.56/bin/setclasspath.sh
This file is needed to run this program
似乎我还没有正确地删除以前安装的tomcat。我怎么才能让这个发挥作用。帮助。
更新
[root@localhost bin]# ./startup.sh
Using CATALINA_BASE: /usr/local/
我从官方来源在CentOs 7机器上安装了Tomcat 7.0.76,根本无法让Tomcat拥有写访问权。每当我的代码中有什么东西想要写入磁盘或创建目录时,我都会得到一个拒绝权限的错误。
例如,如果我想创建一个目录,就会得到以下错误:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'application': Invocation of init method failed; nested exception is org.ehcache.StateT