目前,我的侧面项目的prod环境是一个git repo,我在其中输入一些代码,用Ctrl-C手动终止服务器,然后手动重启.
我意识到这有很多问题.例如,如果用户仍处于重要事项的中间并且该过程正在处理敏感数据,那么我刚刚杀了它?
当我使用node v0.4.x时,有一个很好的Cluster模块可以在应用程序处于安静状态时正常重启服务器.在v0.6.x中,Cluster模块内置于节点中,但它确实非常简单,并且没有优雅的重启能力.
任何人都知道如何在v0.6.x中优雅地重启nodejs服务器?
我有一个ASP.NET MVC网站,每天在Server Intellect的共享主机平台上获得大约6500次点击.我一直在日志中看到app重启,我无法弄清楚原因.
我在这里阅读了Scott Gu的文章:http://weblogs.asp.net/scottgu/archive/2005/12/14/433194.aspx 并实现了这项技术,以下是我日志中显示的内容:
Application Shutdown:
_shutDownMessage=HostingEnvironment initiated shutdown
HostingEnvironment caused shutdown
_shutDownStack=at
System.Environment.GetStackTrace(Exception e, Boolean needFileInfo) at
System.Environment.get_StackTrace() at
System.Web.Hosting.HostingEnvironment.InitiateShutdownInternal() at
System.Web.Hosting.HostingEnvironment.InitiateShutdown() at
System.Web.Hosting.PipelineRuntime.StopProcessing()
Run Code Online (Sandbox Code Playgroud)
它似乎每五分钟发生一次.
有没有其他方法来调试这个?
更新:以下是Softion提到的应用程序池设置:
中央处理器
过程模型
快速失败保护
回收
我在我的Windows 7机器上安装了XAMPP并创建了许多虚拟服务器.这部分很简单.
每次添加新的虚拟服务器时,我都必须重新启动计算机才能重新启动Apache服务器,这当然非常耗时.
我用google搜索并找到了用于重启Apache的正确的控制台命令,但绝对没有我发现的引用实际告诉你在哪里输入相关的命令!假设一定程度的知识.
所以我的问题是 - 我在哪里打字apache -k restart?
在这个答案之后,我尝试使用以下命令重新启动Jenkins实例:
(jenkins_url)/safeRestart
Run Code Online (Sandbox Code Playgroud)
和
(jenkins_url)/restart
Run Code Online (Sandbox Code Playgroud)
两者都失败了以下消息:
Jenkins无法按照当前配置重启自己.
搜索Jenkins cannot restart itself as currently configured出现的消息显示,当app.lifecycle.canRestart为上,但我不知道如何设置它.
知道如何让Jenkins重新启动吗?
我想在monit处理一种连锁动作.
我的尝试(到目前为止):
check process myprocess with pidfile /run/my.pid
start program = "/path/to/binary start" with timeout 60 seconds
stop program = "/path/to/binary stop" with timeout 60 seconds
if not exist for 3 cycles then restart
if not exist then alert
if 3 restarts within 3 cycles then timeout
Run Code Online (Sandbox Code Playgroud)
在故障PID时不报警并保持状态"运行",但在3个周期后重新启动.
check process myprocess with pidfile /run/my.pid
start program = "/path/to/binary start" with timeout 60 seconds
stop program = "/path/to/binary stop" with timeout 60 seconds
if not exist for 3 cycles …Run Code Online (Sandbox Code Playgroud) 我正在编写一个bash脚本(用于基于apt-get的OS),它可以自动执行各种程序的安装过程.在这个过程中,我有时会运行"apt-get -fy update"和"apt-get -fy upgrade".在升级过程中,偶尔需要重启.
我的问题:有没有办法测试系统是否在运行"apt-get -fy upgrade"后要求重启?我正在尝试编写脚本,使其从头到尾运行,无需任何干预.
谢谢.
我在Windows上遇到了Hudson的问题.
每当我更新Hudson或插件时,我都可以选择在没有作业运行时重新启动.
如果我单击此按钮,Hudson会挂起并且不会重新启动.我已经尝试重新启动Hudson服务,但这没有用,所以最终不得不重启盒子让Hudson重新上线.
我刚刚更新到最新版本,但没有点击重启按钮,现在它已经消失了.
有没有正确的方法在Windows上重启Hudson?
干杯
汤姆
重启sidekiq的正确方法是什么?它似乎在我启动它时缓存我的工作人员代码,因此每次我对我的工作人员进行更改时我都需要重新启动它.我正在使用Ctrl/C执行此操作,但此过程需要很长时间才能结束并将我返回到提示符.
有没有办法迫使重启立即生效?
我正在使用最新版本的Sinatra通过POW运行.