除了 Ctrl-C 之外,什么终端命令可以停止 webrick 服务器?
我们正在使用Redmine。当早上尝试第一次Redmine 操作时,例如单击“项目”菜单,mysql 适配器会出现段错误。手动重启 Webrick 后,Redmine 可以完美运行。
问题是 mysql gem 是针对 MySQL 5.0 编译的,但我们使用的是更高版本的 MySQL。这是我在 Redmine 官方问题追踪器上了解到的。目前,我不会尝试针对我们的版本重新编译。
我有一个 vbscript 脚本,可以在凌晨重新启动服务器。 vbscript 脚本运行一个包含 ruby script/server webrick -e production 的批处理文件,该文件可以启动 webrick,但如果 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.
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.
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在 Windows 系统上安装时遇到了类似的问题 - 经过 8 小时的活动后,mysql 适配器将出现段错误。
修复方法是在 ruby\bin 中放置另一个 mysql 二进制文件。
论坛 中描述了该问题,并提供了指向其他dll在安装手册中提供。
附带说明一下,但与此问题并不真正相关:问题标记为 webrick,请注意,您应该在 mongrel 而不是 webrick 上运行 redmine。上面链接的维基页面还说:
I had a similar issue when installed on a windows system - after 8 hours of activity, the mysql adapter would segfault.
The fix was to place an other mysql binary in the ruby\bin.
The issue is described in the forum, and the link to an other dll is provided in the installation manual.
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: