使用 MySQL 在远程服务器上安装 Orchestrator
如果在远程服务器上托管 MySQL 数据库,请使用此步骤安装 Orchestrator。
安装过程概述:
注意:安装 Orchestrator 后,您可以在目录 /opt/aspera/orchestrator 中找到所有安装日志信息,文件名类似于以下内容:install_3657_20170620104842.log。 每次重新安装产品时,文件名中的数字字符串都会改变。
注意:您可以配置两个或多个 Orchestrator 实例共享同一台 MySQL 机器;但是,两个 Orchestrator 实例必须使用相同的版本号。
开始之前
在开始安装过程之前:
- 您以管理员身份登录。
- 您已在一台服务器上设置了 MySQL 数据库,该服务器与您计划安装 Orchestrator 的计算机是分开的。注意:您必须使用与 IBM Aspera 通用组件捆绑的 MySQL 版本(请参阅步骤 4)。
- 查看发行说明中的系统要求部分。
- 确认具备以下条件
- 贵机构的登录凭证(用户名和密码)。 您需要从 Aspera 下载页面下载安装程序的凭据。
- Orchestrator 的许可证文件。 在 Orchestrator UI 中进行最终设置时需要使用此步骤。注意:对于 Aspera Enterprise 的购买者,可从 IBM Fix Central 下载启用 Orchestrator 作为 Enterprise 一部分的许可证。
- 安装所需的依赖项:
- perl
- libX11
- libXext
- libXft
- libXi
- libXtst
- 转到 IBM Fix Central 并单击 Orchestrator 当前版本的链接。
- 在计划安装 Orchestrator 的服务器上,下载以下软件的安装程序aspera_orchestrator和ibm_aspera_common.
- 在计划托管 MySQL, 下载ibm_aspera_common.
在远程服务器上配置 MySQL
- 在您计划托管 MySQL, 的服务器上安装 Aspera 公共组件。运行以下命令root:
# yum install ibm-aspera-common-version-0.x86_64.rpm
- 启动 MySQL 数据库的设置。运行以下命令启动配置过程:
# asctl mysql:setup
- 选择设置模式。
Streamlined: A simple setup with all components running on this computer. Detailed: An advanced configuration (e.g. non-standard ports or not all components running on a single server) Streamlined or detailed setup (s/d)? (current: s) d
- 输入 "s "选择 简化设置。
- 如果需要高级配置,例如系统使用非标准端口或并非所有组件都运行在一台服务器上,请输入 "d"(详细)。
下表描述了两种设置模式的系统提示:
系统提示 详细信息 模式(s 或 d) MySQL 是否会在这台计算机上运行(y/n)? 默认值为" "y" d 您希望 MySQL 监听哪个端口? 缺省值为4406 d 输入新的 MySQL 根密码。 输入并确认 MySQLroot密码。 注意:保存此信息,以备将来参考。s, d MySQL 需要在配置过程中启动/重启。 要继续吗(y/n)? 默认值为" "y" 注意: 如果您输入"n",系统将退出设置。s, d What IP addresses and hostnames are allowed to access Orchestrator? 输入允许访问 Orchestrator 的实例的 IP 地址和/或主机名。 10.0.174.44, site.com 注意: 这些不是默认值,而是 IP 地址和主机名正确运行所需的格式示例。 - Enter "y"确认设置。例如:
===================== Settings ===================== MySQL Enabled: true Port: 4406 Are these settings correct? (y/n/x with x for exit) y
MySQL 启动。 - Enter "y" 重新启动 MySQL。
MySQL needs to be restarted, restart it now (y/n)? (default:y) y
- 登录 MySQL 数据库,使用root您在步骤 3 中输入的密码。
例如:/opt/aspera/common/mysql/bin/mysql -h ip_of_mysql_server -P port_number -uroot -p
/opt/aspera/common/mysql/bin/mysql -h 10.0.174.82 -P 4406 -uroot -p
- 创建orchestrator数据库,输入以下内容:
create database orchestrator;
- 要允许 Orchestrator 访问远程 MySQL 数据库,请输入以下命令。在占位符 host 中,输入运行 Orchestrator 的服务器的 IP 地址或主机名:
例如:asctl mysql:grant_remote_access "host"
如果要配置高可用性环境,请使用第二个 Orchestrator 服务器的 host 重复此命令。asctl mysql:grant_remote_access "10.0.115.100"
运行安装程序
在需要安装 Orchestrator 的服务器上:
- 安装 Aspera 公用组件。转到保存安装文件的位置,以下列格式运行以下命令root:
# yum install aspera-common-version-0.x86_64.rpm Preparing... ################################# [100%] Updating / installing... 1:aspera-common-version-0 ################################# [100%]
- 运行 Orchestrator 安装程序。
# yum install aspera-orchestrator-version-0x86_64.rpm Preparing...########################################### [100%] . . . To complete the setup of Orchestrator, run "asctl orchestrator:setup"
- 当提示完成 Orchestrator 设置时,运行以下命令:
# asctl orchestrator:setup
- 出现设置提示时,输入" "d"进行详细设置。
Streamlined or detailed setup (s/d)? (current: s)
选择详细设置可在 Orchestrator 中自定义服务和进程,包括远程服务器上安装的 MySQL 。
- 有关对系统提示的适当回复,请参阅下表:
提示 详细信息 缺省值 What base port should the Mongrel servers start at? 输入杂种服务器的基本端口。 3000 How many Mongrel process should be launched? 输入杂种进程数;这与服务器容量有关。 3 What web root do you want to use? 输入网页根目录。 /aspera/orchestrator MySQL will run on this machine (y/n)? 由于您已将 MySQL 配置为在远程计算机上运行,因此请输入" "n". "y" What is the database server's host name or IP address? 输入安装远程 MySQL 数据库的计算机的 IP 地址。 What port is the remote MySQL listening on? 输入远程计算机上配置的端口。 What user should we use to connect to the database? 输入root. root What password should we use to connect to the database? 输入 MySQLroot为远程 MySQL 数据库创建的密码。 MySQL will need to start/restart during configuration. Continue (y/n)? 进入"y"继续配置过程。 如果输入"n",系统将退出设置。 "y" Enter IP address of network interface for Apache to listen on. 输入 Orchestrator 服务器的主机名或 IP 地址。 0.0.0.0 What hostname or IP address should Apache use to identify itself (in the SSL Certificate)? 输入访问 Web UI 的主机名、IP 地址、FQDN 或以逗号分隔的 IP 地址列表。 重要: 此步骤是必需的。10.0.174.44,site.com What port would you like to run Apache http on? 输入 Apache HTTP 的端口。 80 What port would you like to run Apache https on? 输入 Apache HTTPS 的端口。 443 Would you like to generate a self-signed SSL certificate, or install your own ([g]enerate,[c]opy) (current: g)? - 要生成自签名 SSL 证书,请输入"g"
- 要安装自己的系统,请输入"c"
注意: 密钥和证书将在以下目录中生成: /opt/aspera/common/apache/conf.generate (g) What IP addresses and hostnames are allowed to access Orchestrator? 输入允许访问 Orchestrator 的实例的 IP 地址和/或主机名。 10.0.174.44, site.com 注意: 这些不是默认值,而是 IP 地址和主机名正确运行所需的格式示例。系统将显示上述配置的设置。 - 如果设置正确,请输入" "y"接受并继续;否则,输入"n"重新输入设置。 按下"x"将退出安装过程。
Are these settings correct? (y/n/x with x for exit) y
- 设置完成后,系统会提示您重新启动 Apache。进入"y". (输入"n"退出设置过程)
Apache needs to be restarted, restart it now (y/n)? (default:y) y
- 在系统请求重新启动 MySQL, 输入" "y".(输入"......"n"退出设置过程)
MySQL needs to be restarted, restart it now (y/n)? (default:y) y
设置过程完成后,例如会出现一条关于 Apache 端口的信息:
Reminders: - Apache needs ports 80 and 443 open in firewalls.
记下这些端口号,以备将来参考。
- 要启动 Orchestrator 进程,请运行以下命令:
asctl orchestrator:start
根据系统的不同,您可能会看到以下状态NOT running在系统响应中:
Orchestrator Status: -> Orchestrator Manager running with pid: 3447 -> Orchestrator Engine NOT running -> Mongrel serving orchestrator on port 5000 is NOT running -> Mongrel serving orchestrator on port 5001 is NOT running . . . -> Orchestrator Monitor NOT running -> Asynchronous Worker Process 0 is NOT running -> Asynchronous Worker Process 1 is NOT running -> Synchronous Worker Process 2 is NOT running . . .
这表明 Orchestrator 进程需要更多时间才能启动。 等待约一分钟,然后输入以下命令检查状态:
# asctl all:status
现在,您应该可以看到 Apache 和 MySQL 正在运行的确认信息,以及与下面类似的确认进程正在运行的状态信息:
Apache: running MySQL: running Orchestrator Status: -> Orchestrator Manager running with pid: 3447 -> Orchestrator Engine NOT running -> Mongrel serving orchestrator on port 5000 is running with pid: 3465 -> Mongrel serving orchestrator on port 5001 is running with pid: 3467 . . . -> Orchestrator Monitor running with pid: 3463 -> Asynchronous Worker Process 0 is running with pid: 3480 -> Asynchronous Worker Process 1 is running with pid: 3482 -> Synchronous Worker Process 2 is running with pid: 3484 . . .
在用户界面中完成安装
注意:如果您正在执行 Orchestrator 升级,请跳过本节。
- 打开 Orchestrator 用户界面。在 Web 浏览器中,访问以下 URL,其中 orchestrator_ip_address 是安装了 Orchestrator 的计算机的 IP 地址或完全限定名称。
https://orchestrator_ip_address
注意:根据您当前的证书,您可能会收到安全警告。 如果是,请单击 Advanced 并为 Orchestrator 网站 URL 添加安全例外。 - 在登录字段中,输入admin;密码字段留空。
- 为管理员用户创建密码。在更改密码对话框中,将 当前密码字段留空,然后输入新密码。 在 Confirm password 字段中再次输入密码。
- 应用许可证文件。
- 在更新许可证对话框中,选择要上传的许可证文件,或将许可证文件的内容粘贴到文本框中。
- 单击 更新并验证许可证.
消息New license applied and validated successfully出现在对话框中。
注意:Orchestrator 用户界面会在每个页面的页脚显示当前安装的版本和许可证到期日期。
- 确认所有进程都在运行。
单击 Engine > Processes 并查看状态列,确认所有进程都在运行。 对于任何处于停止状态的进程,单击 Start 可恢复。
- 如果需要系统用户,必须手动激活该账户并设置密码。在顶部导航菜单中,单击 用户。 在系统条目的右侧,单击 "更多"(...)图标,然后单击激活。再次单击 "更多 "图标,然后单击 更改密码注意:作为一项安全措施system用户在安装 Orchestrator 后不会自动分配密码。
在更改系统密码页面,在管理员当前密码字段中输入您的密码,然后输入并确认新的系统用户密码。 单击 更改确认。
- 安装 Orchestrator 后,请配置产品。 详见 产品配置。