以下说明假设您以普通用户身份而不是以 root 身份登录,并且以 root 身份登录的用户已安装了 Service Registry。
转至 ServiceRegistry-base/install 目录。
将文件 install.properties.template 复制到主目录中的某个位置并重命名。
使用如下所示命令:
cp install.properties.template $HOME/sr.properties |
在文本编辑器中打开文件副本,并根据需要修改属性。
您必须为以下属性提供密码值,这些密码值在模板文件中保留为空:
registry.install.AdministratorPassword= registry.install.ApplicationServerKeystorePassword= registry.install.RegistryServerKeystorePassword=
更改文件的权限以便只能读取该文件。
使用如下所示命令:
chmod 400 $HOME/sr.properties |
在 ServiceRegistry-base/install 目录中,运行如下所示命令(全都在一行),指定已修改文件的位置。
Ant-base/ant -f build-install.xml -Dinstall.properties=$HOME/sr.properties configure
使用类似命令以运行所需的其他任何配置目标。
Registry 配置过程将在 $HOME/srvc-registry/domains/${registry.install.DomainName} 中创建一个 Application Server 域。默认域名为 registry。
Registry 配置过程将在 $HOME/srvc-registry/3.0 目录中安装 Registry 数据库和服务器密钥库。
Registry 配置过程将创建一个名为 $HOME/srvc-registry/cacerts 的目录,用于放置 Application Server 域应该信任的已添加证书。
查看 ant configure 命令的输出以确定有无任何错误。
如果没有错误,您现在就可以开始使用 Web 控制台或管理工具。