BUG说明
Using CATALINA_BASE: /usr/share/apache-tomcat-9.0.20
Using CATALINA_HOME: /usr/share/apache-tomcat-9.0.20
Using CATALINA_TMPDIR: /usr/share/apache-tomcat-9.0.20/temp
Using JRE_HOME: /usr/local/java/jdk1.8/jre
Using CLASSPATH: /usr/share/apache-tomcat-9.0.20/bin/bootstrap.jar:/usr/share/apache-tomcat-9.0.20/bin/tomcat-juli.jar
touch: 无法创建’/usr/share/apache-tomcat-9.0.20/logs/catalina.out’: 权限不够
/usr/share/apache-tomcat-9.0.20/bin/catalina.sh: 行 464: /usr/share/apache-tomcat-9.0.20/logs/catalina.out: 权限不够
解决
报错原因:logs目录没有创建修改权限
chmod说明(u:与文件属主拥有一样的权限[a:所有人];+:增加权限;rwx:可读可写可执行)
-R:递归所有目录和文件
sudo chmod a+rwx -R logs