linux 下启动tomcat
[root@test233 bin]# sh startup.sh
提示
Cannot find ./catalina.sh
The file is absent or does not have execute permission
This file is needed to run this program
解决办法:
给.sh文件授权
[root@test233 bin]# chmod +x *.sh
再启动,成功
root@instance-43t2cfcm:/usr/local/bluesky/software/apache-tomcat-9.0.30/bin# sh ./startup.sh
Using CATALINA_BASE: /usr/local/bluesky/software/apache-tomcat-9.0.30
Using CATALINA_HOME: /usr/local/bluesky/software/apache-tomcat-9.0.30
Using CATALINA_TMPDIR: /usr/local/bluesky/software/apache-tomcat-9.0.30/temp
Using JRE_HOME: /usr/local/bluesky/software/jdk1.8.0_202/jre
Using CLASSPATH: /usr/local/bluesky/software/apache-tomcat-9.0.30/bin/bootstrap.jar:/usr/local/bluesky/software/apache-tomcat-9.0.30/bin/tomcat-juli.jar
Tomcat started.