Run tomcat9w.exe, prompting unable to open the service tomcat9

An error is reported when running tomcat9w.exes from the folder

The error prompt box is unable to open the service tomcat9

The method is actually very simple: open DOS, (that is, "start" + R, enter cmd), enter the bin directory of the file where tomcat is located

Tip: Enter cd . . to exit the current path, and cd to enter the path. Not much to say, the picture above! (Note, this is my path, you can go in according to your own installation path)
as the picture shows
Then enter service.bat install in the bin directory

service.bat install

Then it can be opened normally after installation.

Guess you like

Origin blog.csdn.net/weixin_46064809/article/details/108677667