简体   繁体   English

服务器关闭时远程启动GlassFish v3

[英]Remotely starting GlassFish v3 when server is down

I want to start GlassFish in case it crashes or so. 我想启动GlassFish,以防它崩溃。 Is this possible someway if I don't have administrator privilege on the Linux based server? 如果我在基于Linux的服务器上没有管理员特权,是否有可能这样做?

Any help would be appreciated! 任何帮助,将不胜感激! Daniel 丹尼尔

If you don't have the necessary privileges you're not allowed to start it. 如果您没有必要的特权,则不允许启动它。 That's the intention of these privileges. 这就是这些特权的目的。

You should ask the administrator to grant you all necessary privileges or to install a process monitor that automatically restarts the server in case it shuts down unexpectedly. 您应该要求管理员授予您所有必要的特权或安装一个进程监视器,该进程监视器可以在服务器意外关闭时自动重新启动服务器。 Monit is a very lightweight example that comes to my mind. 我想到的Monit是一个非常轻巧的示例。

cron is your friend. cron是你的朋友。 Write a shell script that is invoked periodically by cron, that checks to see if the GlassFish process is running. 编写一个由cron定期调用的shell脚本,该脚本检查GlassFish进程是否正在运行。 (that is, assuming you have rights to actually restart the process.) (也就是说,假设您有权实际重新启动该过程。)

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

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