|
主题: ColdFusion MX in Windows
|
 |危险|
职务:普通成员
等级:1
金币:11.0
发贴:248
|
#12002/5/26 16:31:28
官方的文档中是这么说的: (有人试过吗? 我按照文档中的做了,但没有生成mod_jrun.so文件。WHY?) Configuring Apache web server in Windows This section describes how to configure the Apache web server for ColdFusion MX in Windows, and how to verify your configuration. To configure Apache for ColdFusion MX in Windows: Select Start > Run, and enter cmd. At the command prompt, enter the following command on a single line: cf_root\runtime\jre\bin\java -cp cf_root\runtime\lib -jar cf_root\runtime\lib\wsconfig.jar -ws Apache -dir -v
Note: You must enter the previous command as a single (long) line.
The following is a sample command:
c:\cfusionmx\runtime\jre\bin\java -cp c:\cfusionmx\runtime\lib -jar c:\cfusionmx\runtime\lib\wsconfig.jar -ws Apache -dir c:\Program Files\Apache Group\Apache\conf -v
To verify your Apache configuration: Verify that the following file was created: cf_root\runtime\lib\wsconfig\1\mod_jrun.so Open the Apache configuration file, httpd.conf, in your Apache conf directory. By default it is c:\Program Files\Apache Group\Apache\conf\httpd.conf. Verify that the following code is appended to this file:
# JRun Settings LoadModule jrun_module "c:/CFusionMX/runtime/lib/wsconfig/1/mod_jrun.so" JRunConfig Verbose false JRunConfig Apialloc false JRunConfig Ssl false JRunConfig Serverstore "c:/CFusionMX/runtime/lib/wsconfig/1/ jrunserver.store" JRunConfig Bootstrap 127.0.0.1:51000 #JRunConfig Errorurl
|
 5DDC版主
职务:版主
等级:6
金币:10.0
发贴:3820
|
#22002/5/27 9:54:29
你要在Apache下跑cfmlmx么?
|
 |危险|
职务:普通成员
等级:1
金币:11.0
发贴:248
|
#32002/5/27 11:19:34
是阿,win2000下安装好了,我想在98下试试,但又不想用PWS.
谁知道win98+ apache + cfml的安装方法?
|
 5DDC版主
职务:版主
等级:6
金币:10.0
发贴:3820
|
#42002/5/27 11:37:06
98?我建议你还是放弃把!98很难建立调试环境的!
|
 |危险|
职务:普通成员
等级:1
金币:11.0
发贴:248
|
#52002/5/27 13:05:12
老兄,就是因为很麻烦我才想试试啊。 文档中的步骤写得很清楚,我也照着做了,不成功... 希望哪位在98下装过的出来说说.
|
 5DDC版主
职务:版主
等级:6
金币:10.0
发贴:3820
|
#62002/5/27 15:25:12
我是基本上就没用过98,我也不推荐在98下调是程序!他的16/32体系和内存管理机制,将很难正常运转CF程序,我在98下做过一个website1.1 + Coldfusion 4.0的项目,基本调试成功。其他的就没做过了!基本已经放弃98,不意见在98下作调试环境,包括ME系列!
|
 |危险|
职务:普通成员
等级:1
金币:11.0
发贴:248
|
#72002/5/27 15:36:29
我并没有选择用98来调程序,只是想在98下装着试一下。没想到...
|
 5DDC版主
职务:版主
等级:6
金币:10.0
发贴:3820
|
#82002/5/27 15:39:21
放弃把,除了pws和website1.1其他的都无法正常运行!
|
 dannyr
职务:普通成员
等级:1
金币:0.0
发贴:39
|
#92002/5/28 10:42:21
98+Apache+CFML4.5可以跑的很好,只是没有尝试过Apache+CFMX,你说的方法我在WIN2k下配置IIS5也是不成功的(按MM的PDF配置文档),现在也是使用CFMX的自动配置。我用的是Priew版,有很多BUG,经常出错的,你可以去MM的CFMX技术论坛看看,会有很多帮助的!
|
 5DDC版主
职务:版主
等级:6
金币:10.0
发贴:3820
|
#102002/5/28 12:15:01
我在WINXP PRO + Apache 2.0.36 + CondfusionMX Priew 下安装测试调试通过,很容易设置的!只不过需要一点点的修改: # JRun Settings LoadModule jrun_module "c:/CFusionMX/runtime/lib/wsconfig/1/mod_jrun.so" JRunConfig Verbose false JRunConfig Apialloc false JRunConfig Ssl false JRunConfig Serverstore "c:/CFusionMX/runtime/lib/wsconfig/1/ jrunserver.store" JRunConfig Bootstrap 127.0.0.1:51000 #JRunConfig Errorurl AddHandler Jrun-Handler .jsp .jws .cfm 就好使了!其中:AddHandler Jrun-Handler .jsp .jws .cfm 必须添加,默认可能没有.cfm解析,只有jsp解析,看来CFMX根本就是Jrun4的内核。
|
 |危险|
职务:普通成员
等级:1
金币:11.0
发贴:248
|
#112002/5/28 13:04:59
按照文档中的提示必须先在启动中输入下面命令行: c:\cfusionmx\runtime\jre\bin\java -cp c:\cfusionmx\runtime\lib -jar c:\cfusionmx\runtime\lib\wsconfig.jar -ws Apache -dir c:\Program Files\Apache Group\Apache\conf -v
然后生成c:/CFusionMX/runtime/lib/wsconfig/1/mod_jrun.so 文件。
我在98下试了,没有生成任何文件,路径都是对的。 郁闷...
|
 5DDC版主
职务:版主
等级:6
金币:10.0
发贴:3820
|
#122002/5/28 14:49:39
此文件生成在jre包中,而不是物理路径,运行以上命令后,其实就已经生成完毕了,mod_jrun.so 文件也不一定叫这个名,这个名是随机的!
|
 |危险|
职务:普通成员
等级:1
金币:11.0
发贴:248
|
#132002/5/28 16:16:10
可以把你修改后的httpd.conf文件给我看一下吗?
|
 5DDC版主
职务:版主
等级:6
金币:10.0
发贴:3820
|
#142002/5/28 17:15:12
就是这一段: # JRun Settings LoadModule jrun_module "c:/CFusionMX/runtime/lib/wsconfig/1/mod_jrun.so" JRunConfig Verbose false JRunConfig Apialloc false JRunConfig Ssl false JRunConfig Serverstore "c:/CFusionMX/runtime/lib/wsconfig/1/ jrunserver.store" JRunConfig Bootstrap 127.0.0.1:51000 #JRunConfig Errorurl AddHandler Jrun-Handler .jsp .jws .cfm
没有别的了!其中java -cp只不过是指了一个jre的虚拟路径,生成的虚拟文件,所以你不用介意,直接加入这一行就可以了!我是在winxp下调是的!不是98下!
|
 |危险|
职务:普通成员
等级:1
金币:11.0
发贴:248
|
#152002/5/28 17:19:55
98下加入这一行,Apache就不能启动了。
|