service.bat install tomcat8
Neither the Tomcat9.exe file nor the tomcat8.exe file was found...
Either the CATALINA_HOME environment variable is not defined correctly or
the incorrect service name has been used.
Both the CATALINA_HOME environment variable and the correct service name
are required to run this program.
嗯,就是这个报错,根据下面这个文章配置的环境变量
Apache Tomcat 安装与配置教程 - 李培冠 - 博客园
这个整体还是很完全的。但是要注意一点,这里的CATALINA_HOME, 也即是上面博客中提到的2.2,这个一定要在 系统的环境变量中。我放在用户下了,所以一直找不到,导致
1. service install tomcat8报错
2. 点击 startup.bat 一闪而过,打不开
3.点击 startup.sh 一闪而过
总结:所有的问题都归结于 CATALINA_HOME的环境变量,一定放在系统环境变量
一定放在系统环境变量
一定放在系统环境变量
一定放在系统环境变量
一定放在系统环境变量
同时把用户环境变量删除,
用户环境变量删除
用户环境变量删除
用户环境变量删除
用户环境变量删除
这个变量只在系统中有就可以了