取消部署 Etherpad 有哪些选项?
是否有在 (Windows Server 2003) 服务器上取消部署 Etherpad 的“干净”方法?现在,我只需在 cygwin 控制台上使用 ctrl+c 或在任务管理器上结束该进程。我不想使用 TASKKILL /fi "imagename eq cmd*" 因为它也可以结束其他 cmd 进程。我计划制作一个脚本来自动部署和取消部署 Etherpad。
问候
Are there "clean" ways of undeploying Etherpad on a (Windows Server 2003) server? Right now, I just use ctrl+c on the cygwin console or end the process on the Task Manager. I don't want to use TASKKILL /fi "imagename eq cmd*" since it can end other cmd processes as well. I plan to make a script to automate deployment and undeployment of Etherpad.
Regards
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Etherpad 是为在 unix 上运行而构建的,当您彻底关闭时,您会注意到输出了几行关于保存到磁盘等的信息。
您可以使 .cmd 或 .bat 脚本在完成运行后保持打开状态,或者添加一行
暂停
在脚本末尾,然后您将看到 Ctrl-C 是否会导致干净关闭。
如果您想自动关闭,您需要找到一个可以发送适当信号的 Windows 软件。 Windows 据说内置了一些 posix 兼容性,因此您很有可能找到所需的信号和一些免费/共享软件来发送信号。
如果可行,也许您可以在博客中介绍您的解决方案和/或在 github.com/ether/pad/wiki 上添加一个 wiki 页面
否则,请通过 github.com/ether/pad/issues 联系 etherpad 团队,并请求与 Windows 兼容的干净关闭功能。
Etherpad was built to run on unix, and when you do a clean shutdown you'll notice a few lines about saving to disk etc being output.
You can make your .cmd or .bat script stay open after it finishes running, or add a line
pause
at the end of the script, and then you'll see if Ctrl-C causes a clean shutdown.
If you want to automate the shutdown, you'll need to find a windows software that can send the appropriate signals. Windows supposednly has some posix compatibility built in, so there's a fair chance you can find both the needed signal and some free/shareware to send the signal.
If this works out, maybe you could blog about your solution and/or add a wikipage on github.com/ether/pad/wiki
Otherwise, contact the etherpad team via github.com/ether/pad/issues and ask for a windows-compatible clean shutdown feature.