0

我在 Eclipse 中创建了一个 tomcat7 服务器,我想在 ubuntu 中使用终端启动和停止服务器。有没有办法做到这一点 ?

4

2 回答 2

1

sh startup.sh您可以在 ubuntu 终端中使用 " " 启动和 " sh shutdown.sh" 关闭来启动或停止 tomcat 。这些 shell 脚本可以在“ $(tomcat_folder)/bin”中找到。希望能帮助到你。

于 2013-10-01T05:44:03.587 回答
0

首先,找到eclipse正在使用的tomcat路径。然后在 ubuntu 终端中导航该路径并简单地

sh startup.sh // starts up the server

sh shutdown.sh // shuts down the server
于 2013-10-01T05:59:51.107 回答