安装 Application Server 的默认位置为 /opt/SUNWappserver/appserver(在 Solaris 操作系统上)或 /opt/sun/appserver(在 Linux 和 HP-UX 系统上)。如果您在其他位置安装了 Application Server,则必须在配置 Service Registry 之前编辑文件 install.properties 的副本。
转至 ServiceRegistry-base/install 目录。
将文件 install.properties 复制到安全位置并重命名。
使用如下所示命令:
cp install.properties $HOME/hidden_dir/sr.properties |
更改属性文件的权限使其成为可写入文件。
使用如下所示命令:
chmod 600 $HOME/hidden_dir/sr.properties |
在文本编辑器中打开此文件。
查找被注释掉的 appserver.root.dir 属性的定义。
删除注释字符 (#) 并用 Application Server 的实际位置替换属性定义。
保存并关闭此文件。
按照配置 Service Registry中的说明继续进行操作。