touch: cannot touch `/usr/share/tomcat7/logs/catalina.out': No such file or directory
When installed using the tomcat7
package, it is intended that you start and stop Tomcat using upstart (service tomcat start
) or the /etc/init.d/tomcat
script. If you start it using the startup.sh
script then it is likely to have its environmental variables incorrectly configured.
Please see my answer to your previous question (How should I install Apache Tomcat 7 for use with Eclipse?) for a better way to install Tomcat if you don't want to run it as a service.