• 终端启动tomcat报错 command not found 解决方法 (含启动和关闭命令)


    Tomcat配置步骤:

    1.cd命令进入Tomcat安装路径的bin下

    2.sudo chmod 755*.sh 输入appleID密码获得相关权限

    3.sudo sh ./startup.sh启动Tomcat

    4.sh ./shutdown.sh关闭 tomcat 

    (亲测 ok)

    如遇输入后仍提示command not found 或

    Cannot find ./catalina.sh

    The file is absent or does not have execute permission

    This file is needed to run this program

    ,则解决方法:

    换以下两个命令输入(一般用第一个)

    1. sh catalina.sh run 
    2. nohup ./start.sh &

    其中第一个命令行,启动时可看到日志在刷新,但是 关闭ssh后就会自动关闭tomcat,并非在后台运行;
    其中第二个命令行,启动时看不到日志在屏幕刷新,但是关闭ssh后不会关闭tomcat,因为是在后台运行;

    现在打开浏览器输入:http://localhost:8080/

    应该可以正常显示了

    来源: https://blog.csdn.net/dingshao1114/article/details/62905943

  • 相关阅读:
    MySQL学习笔记
    FileInputStream
    Java 多个if 和多个else if 的区别
    Flume 聚合
    Flume SinkProcessor
    Flume ChannelSelector (包括自定义flume拦截器)
    Flume 案例演示
    為政第二
    各种版本 WordCount
    學而第一
  • 原文地址:https://www.cnblogs.com/kaibindirver/p/9591545.html
Copyright © 2020-2023  润新知