Windows、Solaris 和 Linux 支持M-Business Anywhere 重定向器。它的测试已经通过使用 M-Business Anywhere 5.5 版完成。
配置 M-Business Anywhere 重定向器
完成配置重定向器属性(所有版本)中的步骤。
将文件 mod_iaredirect.dll 或 mod_iaredirect.so 复制到 Web 服务器的 %avantgo-home%\bin 目录中。此文件位于 SQL Anywhere 安装目录的 MobiLink\redirector\avantgo\OS 子目录中,其中,OS 是 linux 或 solaris。(对于 Windows,没有 OS 子目录。)
对于 Windows,请按以下步骤升级 M-Business Anywhere Web 服务器配置文件 sync.conf:
在 LoadModule 部分,添加以下行:
LoadModule iaredirect_module path/bin/mod_iaredirect.dll
其中,path 为 M-Business Anywhere bin 目录的位置。
在文件中添加以下部分:
<Location /iaredirect/ml> SetHandler iaredirect-handler iaredirectorConfigFile location/redirector.config </Location>
其中,/iaredirect/ml 是即将用于调用重定向器的路径,location 是 redirector.config 所在的目录。
在 SyncLoadFile 部分,添加以下行:
SyncLoadFile path/bin/mod_iaredirect.dll
其中,path 为 M-Business Anywhere bin 目录的位置。
对于 Solaris 和 Linux,请按以下步骤升级 M-Business Anywhere Web 服务器配置文件 sync.conf:
在 LoadModule 部分,添加以下行:
LoadModule iaredirect_module pathbin/mod_iaredirect.so
其中,path 为 M-Business Anywhere bin 目录的位置。
在文件中添加以下部分:
<Location /iaredirect/ml> SetHandler iaredirect-handler iaredirectorConfigFile location/redirector.config </Location>
其中,/iaredirect/ml 是即将用于调用重定向器的路径,location 是 redirector.config 所在的目录。
你可能需要将以下可选指令添加到刚才创建的 <Location> 部分:
MaxSyncUsers 数量 通过重定向器进行同步的最大 MobiLink 用户数量。此数量用于向重定向器分配必要资源。此数量不能小于 60。缺省值是 1000。仅在缺省用户数量小于实际数量时更改此设置。
ShmemDiagnosis on|off 如果设置为 on,则允许调试内存资源。缺省值是 off。
为帮助调试,您可能想要增加重定向器输出的日志信息的数量。为此,请修改 sync.conf 中的 LogLevel 指令并将其设置为 LogLevel info。日志级别可以是(详细程度从高到低):debug、info、notice、warn、error、crit、alert 和 emerg。
如果使用的是 HTTPS 以外的任何网络协议,则您的配置已完成。
如果您正使用 HTTPS 同步,您必需执行 ECC 和 RSA 安全机制。
有关详细信息,请参见M-Business 服务器管理员指南 中的 [Windows 安全性] 或 [UNIX 安全性] 章节。
以下是 sync.conf 中某些部分的示例,这些示例配置 M-Business Anywhere Web 服务器以将请求路由到 MobiLink 同步服务器。
此示例在 Windows 上运行:
LoadModule iaredirect_module "c:\program files\M-Business Anywhere\bin\mod_iaredirect.dll"
...
SyncLoadFile "c:\program files\M-Business Anywhere\bin\mod_iaredirect.dll"
...
<Location \iaredirect\ml>
SetHandler iaredirect-handler
iaredirectorConfigFile "c:\AvantGoServer\conf\redirector.config"
</Location>以下示例在 UNIX 和 Linux 上运行:
LoadModule iaredirect_module modules/mod_iaredirect.so
...
<Location /iaredirect/ml>
SetHandler iaredirect-handler
iaredirectorConfigFile "/redirector.config"
</Location>测试您的配置
使用以下语法调用重定向器:
http://host:port/iaredirect/ml/
其中,iaredirect 为您在 sync.conf 的 <Location> 标记内指定的路径。
检查日志文件看重定向器是否记录了请求。
注意:此测试不建立到 MobiLink 同步服务器的连接。
SQL Anywhere Studio 9.0.2
版权所有 © 1989–2005 Sybase, Inc. 部分版权所有 © 2001–2005 iAnywhere Solutions, Inc. 保留所有权利。