在终端mac上启动和关闭tomcat 7的代码是什么?

Cri*_*sty 2 terminal tomcat7

我很擅长使用终端和使用tomcat.我昨天已经安装了tomcat并且它正在工作,但是今天当我再次打开我的电脑时,它无法工作,我假设我需要再次启动它,但我不知道如何.

有人可以向我解释或编写代码来启动它吗?

提前致谢!

Cri*_*sty 10

这有效!使所有Tomcat的bin shell脚本可执行apache-tomcat-7.0.30/bin下的文件

代码是:

chmod a+x *.sh
Run Code Online (Sandbox Code Playgroud)

之后用脚本从tomcat/bin运行:

./startup.sh
Run Code Online (Sandbox Code Playgroud)