简体   繁体   English

Netbeans 和 Grails - 停止服务器

[英]Netbeans and Grails - stop server

What is the correct way to stop the web server for Grails in the Netbeans IDE?在 Netbeans Z581D6381F3ACF35E4F9DZ7720136 中停止 web 服务器的正确方法是什么? After I Run Project (F6), I have been just rebuilding the project to do this.在我运行项目 (F6) 之后,我一直在重建项目来执行此操作。 Is there a better way?有没有更好的办法?

If you look under the output tab you can find the task labelled (run-app) and select the Stop icon (a Red Square with a White dot at the center) to stop the application.如果您查看 output 选项卡下,您可以找到标记为 (run-app) 的任务和 select 停止图标(中间有一个白点的红色方块)来停止应用程序。

This is not true.这不是真的。 Type in your terminal "ps aux | grep grails" then you will see a number associated with the app and type "kill -9 (then the number)" and it will stop all process在您的终端中输入“ps aux | grep grails”,然后您将看到一个与应用程序关联的数字并输入“kill -9(然后是数字)”,它将停止所有进程

There is no special Grails command to stop a running server, so just use whatever Netbeans provides to stop a project that was started from inside the IDE没有特殊的 Grails 命令来停止正在运行的服务器,所以只需使用 Netbeans 提供的任何东西来停止从 IDE 内部启动的项目

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM