按照教程,安装Tomocat:
(1)下载Tomcat正确版本前,查看已安装的java版本
cmd命令行:java -version
(2)查看对应版本,下载java支持版本Tomcat。
链接:https://www.cnblogs.com/tongying/p/13284140.html
(3)按照步骤安装:
链接:https://www.cnblogs.com/yocichen/p/10478431.html
(4)输入localhost:8080无法访问,启动Tomcat,发现没有反映,未正常启动。
(5)查看Tomcat安装路径下的Tomcat/logs/commons-daemon.2021-09-06日志文件,发现如下报错,提示已找到JVM,但无法加载。
[2021-09-06 09:28:12] [info] [16372] Apache Commons Daemon procrun (1.2.4.0 64-bit) started.
[2021-09-06 09:28:12] [info] [16372] Running Service 'Tomcat9'...
[2021-09-06 09:28:12] [info] [23580] Starting service...
[2021-09-06 09:28:12] [error] [23580] Found 'D:\JDK\bin\server\jvm.dll' but couldn't load it.
[2021-09-06 09:28:12] [error] [23580] 拒绝访问。
[2021-09-06 09:28:13] [error] [23580] Invalid JVM DLL handle.
[2021-09-06 09:28:13] [error] [23580] 拒绝访问。
[2021-09-06 09:28:13] [error] [23580] 拒绝访问。
[2021-09-06 09:28:13] [error] [23580] Failed to load JVM DLL 'D:\JDK\bin\server\jvm.dll', home ''.
[2021-09-06 09:28:13] [error] [23580] 拒绝访问。
[2021-09-06 09:28:13] [error] [23580] Failed creating Java 'D:\JDK\bin\server\jvm.dll'.
[2021-09-06 09:28:13] [error] [23580] 拒绝访问。
[2021-09-06 09:28:13] [error] [23580] ServiceStart returned 1.
[2021-09-06 09:28:13] [error] [23580] 拒绝访问。
[2021-09-06 09:28:13] [info] [16372] Run service finished.
[2021-09-06 09:28:13] [info] [16372] Apache Commons Daemon procrun finished.
(6)查找解决方案,终于找到,但具体什么原因不清楚,放上链接:
链接:http://blog.sina.com.cn/s/blog_4cd978f90102zda8.html
问题虽然解决了,但由于不清楚解决复制的两个文件什么作用,稀里糊涂。。。欢迎大神讲解教我做事。