重新启动应用程序而不重新启动服务器? [英] restart application without restarting server?

查看:142
本文介绍了重新启动应用程序而不重新启动服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法重新启动ColdFusion应用程序而不重新启动整个服务器?

Is there a way to restart a ColdFusion application without restarting the entire server?

有两个ColdFusion应用程序在服务器上运行,我只想重新启动一个

There are two ColdFusion applications running on a server and I only want to restart one of them.

推荐答案

如果您使用Application.cfc,可以更新它,以便可以强制调用onApplicationStart如果特定的东西在url中传递,或类似的东西。只需在onRequestStart()中检查那个魔术代码,如果是,就调用onApplicationStart()。

If you are using Application.cfc, you can update it so that you can force a call to onApplicationStart() if something specific is passed in the url, or something similar. Simply place a check for that magic token in onRequestStart(), and call onApplicationStart() if it is.

如果你不是,你可以尝试@ Marcos的建议。我不知道你的应用程序可能有什么后果。我建议的是实际上重命名您的应用程序,所以它开始作为一个新的应用程序。

If you are not, you can try @Marcos's suggestion. I'm not sure what ramifications that may have in your application. What I would suggest is actually renaming your application, so it starts as a new app.

这篇关于重新启动应用程序而不重新启动服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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