Linux下tomcat 启动报错touch: 无法触碰 “/usr/local/tomcat6.0/logs/catalina.out”: 没有那个文件或目录
tomcat 启动报错:
[root@rhel bin]# ./startup.sh Using CATALINA_BASE: /usr/local/tomcat6.0 Using CATALINA_HOME: /usr/local/tomcat6.0 Using CATALINA_TMPDIR: /usr/local/tomcat6.0/temp Using JRE_HOME: /usr/local/jdk/jre touch: 无法触碰 “/usr/local/tomcat6.0/logs/catalina.out”: 没有那个文件或目录 /usr/local/tomcat/bin/catalina.sh: line 310: /usr/local/tomcat6.0/logs/catalina.out: 没有那个文件或目录 //提示无法创建/usr/local/tomcat6.0/logs/Catalina.out 这一个文件,因为没有logs这一个目录;
解决方法: 只要建立一个logs目录就行了 mkdir /usr/local/tomcat7.0.19/logs