如何确定已安装的ColdFusion位数 [英] How to determine the installed ColdFusion bitness

查看:71
本文介绍了如何确定已安装的ColdFusion位数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何确定已安装的ColdFusion服务器是32位还是64位?

How can I determine if the installed ColdFusion server is 32 or 64 bit?

我希望看到一个可以从服务器登录以及通过CFML代码以编程方式解决我的问题的答案。

I would love to see an answer that solves my problem both from being logged in on the server and programmatically from CFML code.

推荐答案

好吧,虽然不像我想的那么简单,但是信息已经存在。

Ok, not quite as straight-forward as I thought, but the information is there.

在所有三个CFML引擎中,您都可以使用 Server.Os.Arch 。其中包含一个值,例如64位的 amd64 i386 x86 用于32位系统。

In all three CFML engines, you can programmatically access the JVM information via the server scope with Server.Os.Arch. This contains a value such as amd64 for 64-bit, and i386 or x86 for 32-bit systems.

在Railo(但不是ACF / OBD)上,还有 Server.Os.ArchModel ,其中仅包含 64 32 适当。

On Railo (but not ACF/OBD) there is also Server.Os.ArchModel which simply contains 64 or 32 as appropriate.

对于所有三个引擎,您都可以通过以下方式获得此64/32值: createObject('java','java.lang.System')。getProperty( sun.arch.data。型号)

For all three engines you can get this 64/32 value with: createObject('java','java.lang.System').getProperty("sun.arch.data.model")

在CF管理员中,如果要在服务器设置>设置摘要中,您可以找到 Java VM名称,其中包含 Java HotSpot(TM)64位服务器VM (或等价于32位) 。

In CF administrator, if you go to "Server Settings" > "Settings Summary" you can find the "Java VM Name" which contains Java HotSpot(TM) 64-Bit Server VM (or equiv for 32 bit).

在OpenBD管理员中,选择服务器>系统信息,第三个选项包含操作系统,其中包括 amd64 以及指向 JVM属性的链接,您可以在其中找到包含architec值的 java.vm.name和 sun.arch.data.model名称和位数。

In OpenBD administrator, select "Server" > "System Info" and the third option contains "Operating System", which includes amd64 on a 64-bit system, along with a link to "JVM properties", where you can find "java.vm.name" and "sun.arch.data.model" containing values for architecture name and bitness.

在Railo管理员中,概述页面(登录时)有一个信息部分,其中包含OS和JVM的字段,每个字段在版本信息后添加 64bit 32bit

In Railo administrator, the "Overview" page (when you login) has an "Info" section which includes fields for both OS and JVM, each with either 64bit or 32bit after the version info.

这篇关于如何确定已安装的ColdFusion位数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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