There are three types of inaccessibility
- Environment variables are incorrectly configured. During startup, commands cannot be found or CMD blinks
- The interface is occupied by another program
- Tomcat seems to start up, but browser access is still 404,500
In the first case, it is easy to reconfigure as you would configure Java
In tomcat/conf/server.xml, Modify Connector port=”8080″ redirectPort=”8443″ connectionTimeout=”20000″ protocol=”HTTP/1.1″/> any port number
In the third case, it seems that bat can start normally, but the browser is still not accessible, and there will be various serious and various warnings on the command line. This is probably because your Tomcat does not have read and write permissions. Right click your Tomcat directory — Properties — Security — Select User — Give full control of permissions — Application — restart Tomcat.
So that’s the third case that I’ve got, and I’ve solved it, so let me write that down