什么终端命令停止webrick服务器除了Ctrl-C? [英] What terminal command stops webrick server besides Ctrl-C?

查看:410
本文介绍了什么终端命令停止webrick服务器除了Ctrl-C?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们使用Redmine。当尝试第一个Redmine操作时,mysql适配器在早上断言。单击项目菜单。 Redmine在Webrick被手动重启之后工作得很好。

We are using Redmine. The mysql adapter segfaults in the mornings when the first Redmine operation is attempted, e.g. clicking on the Projects menu. Redmine works perfectly after Webrick is manually restarted.

问题是mysql gem是针对MySQL 5.0编译的,但是我们使用的是以后的MySQL版本。这是我在官方Redmine问题跟踪器中学到的。目前,我不会尝试重新编译我们的版本。

The problem is that the mysql gem was compiled against MySQL 5.0, but we are using a later MySQL version. This is what I learned on the official Redmine issue tracker. For the moment, I am not going to attempt to recompile against our version.

我有一个vbscript脚本,可以在早上的早上重新启动服务器。 vbscript脚本运行包含 ruby​​ script / server webrick -e production 的批处理文件,它可以启动webrick,但是如果webrick已经运行,则脚本没有什么区别。我需要一个可以停止服务器的命令。

I have a vbscript script that can restart the server during the very early hours of the morning. The vbscript script runs a batch file containing ruby script/server webrick -e production which can start webrick, but if webrick is already running, the script does not make a difference. I need a command that can stop the server.

推荐答案

在Windows系统上安装时,

I had a similar issue when installed on a windows system - after 8 hours of activity, the mysql adapter would segfault.

修复是在ruby \bin中放置另一个mysql二进制文件。

The fix was to place an other mysql binary in the ruby\bin.

此问题在论坛中有所描述,并且安装手册中提供了指向其他dll的链接

The issue is described in the forum, and the link to an other dll is provided in the installation manual.

在旁注中,但与此问题无关:问题标记为 webrick ,请注意应该在mongrel而不是webrick上运行redmine。上述链接的wiki页面还提到:

On a side note, but not really related to this issue: The question is tagged webrick, be aware that you should run redmine on mongrel instead of webrick. The above linked wiki page also says:


不推荐使用webrick作为
开发之外的任何东西。

It is not recommended to use webrick for anything other than development.

这篇关于什么终端命令停止webrick服务器除了Ctrl-C?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆