lcpsky

导航

安装tomcat9服务报错

错误提示:

E:\Program Files (x86)\tomcat9\bin>service install tomcat9
Neither the Tomcat9.exe file nor the tomcat9.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.

解决办法:

  • 设置系统环境变量
    在这里插入图片描述
  • 设置path属性
    在这里插入图片描述
  • 设置环境变量即时生效,进入 DOS 命令提示符,输入:set PATH=C: ,关闭 DOS 窗口。再次打开 DOS 窗口,输入:echo %PATH% ,可以发现 “我的电脑”->“属性”->“高级”->“环境变量” 中设置的 PATH 值已经生效。

posted on 2021-03-11 22:55  lcpsky  阅读(595)  评论(0)    收藏  举报