HQ-Server部署文档

 

Linux篇(CentOS7)

一、准备工作

1.在远程虚机上安装CentOS7 64位。

    ① 为了保证统一环境,用linux母盘创建新虚拟机。

    ② 安装时注意配置ipv4和DNS,配之前ping一下该ip,防止冲突。

2.下载hyperic-hq-installer-x86-64-linux-5.8.6.tar.gz(两种方法,可以在linux用命令下载和解压,或配置WinSCP上传。推荐使用第二种方法)。

    ① 配置WinSCP(其它同类工具均可)。

    ② 上传并解压hq-installer。

2.安装JDK(文末有参考文档连接)。

3.安装PostgreSQL

    参考文件:附02ContOS(RedHat-Family)安装PostgreSQL

二、安装HQ Server。

    1.下载解压hq-server-installer。

    2.切换至root账户。创建名hyperic的用户并修改账户密码,命令为:

        adduser hyperic

        passwd hyperic

        HQ-Server部署文档

    3.把解压后的hq-server-installer移至/home/hyperic/目录下。

    4.把此目录权限授权给hyperic用户。

        HQ-Server部署文档

    5.运行安装命令

        /home/hyperic/hq-server-installer.xxx/setup.sh -full

    6.按照提示输入相关信息

    7.等待完成安装。

[email protected]:/cloudriver/hyperic-hq-installer-5.8.6$ ./setup.sh -full

Unpacking JRE to temporary directory /tmp/jre

Please ignore references to missing tools.jar

Unable to locate tools.jar. Expected to find it in /tmp/lib/tools.jar

Loading taskdefs...

Taskdefs loaded

Initializing Hyperic HQ 5.8.6 Installation...

Choose which software to install:

1: Hyperic HQ Server

2: Hyperic HQ Agent

You may enter multiple choices, separated by commas.

1

HQ server installation path [default '/home/hyperic']:#安装路径

What port should the HQ server's web-based GUI listen on for http communication? [default '7080']:

#WEB访问端口

What port should the HQ server's web-based GUI listen on for secure https communication? [default '7443']:#agent通信的端口

Choices:

    1: Yes

    2: No

Would you like to use your own java keystore? [default '2']:#javakeystone认证

 

Enter the base URL for the HQ server's web-based GUI [default 'http://Master.Hadoop:7080/']:

#WEB访问的URL

Enter the fully qualified domain name of the SMTP server that HQ will use to send email messages [default 'Master.Hadoop']:#SMTPServer域名

Enter the email address that HQ will use as the sender for email messages [default '[email protected]']:#邮箱地址

 

Choices:

    1: HQ Built-in Database #HQ内置数据库

    2: PostgreSQL #HQ内置数据库

The HQ built-in database is provided for EVALUATION PURPOSES ONLY. For production purposes use vPosgreSQL. What backend database should the HQ server use? [default '1']:

1

#选择2 PostgreSQL时,会依次提示用户输入主机名、数据库名、链接URL、数据库用户名(postgres)以及数据库用户密码,需要注意:在CentOS下,主机名填写localhost时可能会出现无法连接数据库的错误,建议手动输入当前主机IP而不使用localhost

What port should HQ's built-in database use? [default '9432']:

 

Choices:

    1: Yes

    2: No

Would you like to use an auto generated encryption key to encrypt the database password? [default '1']:

1

What should the username be for the initial admin user? [default 'hqadmin']:

#Web端登录帐号

What should the password be for the initial admin user?:

(again): #Web端登录密码(hqadmin

What should the email address be for the initial admin user? [default '[email protected]']:

#Email地址

Loading install configuration...

Install configuration loaded.

Preparing to install...

Validating server install configuration...

Checking server webapp port...

Checking server secure webapp port...

Verifying admin user properties

Validating server DB configuration...

Installing the server...

Unpacking server to: /home/hyperic...

Creating server configuration files...

Using "small" installing profile...

Copying binaries and libraries to server installation...

Copying server configuration file...

Copying server db-upgrade files...

Copying server libs...

Setting up server database...

 

Now login to another terminal as root and execute this script:

#在安装之前需要先初始化内置数据库

/cloudriver/hyperic-hq-installer-5.8.6/installer/data/hqdb/tune-os.sh

 

This script sets up the proper shared memory settings to run the

built-in database.

 

Press Enter after you run the script to continue this installation.

 

#开始安装

Setting up JDBC driver...

Copying database files...

Configuring database...

Loading taskdefs...

Taskdefs loaded

Starting repopulation of configuration table...

Waiting for built-in database to start (on port 9432)...

Starting built-in database...

Preparing database...

Loading taskdefs...

Taskdefs loaded

Loading taskdefs...

Taskdefs loaded

Loading taskdefs...

Taskdefs loaded

Waiting for server to stop...

Stopping built-in database...

Built-in database stopped.

Installing the server JRE ...

Unpacking JRE amd64-linux-1.7_101.tar.gz to: /home/hyperic/server-5.8.6...

Setting permissions on /home/hyperic/server-5.8.6...

Setting permissions on server binaries...

Fixing line endings on text files...

--------------------------------------------------------------------------------

Installation Complete:

Server successfully installed to: /home/hyperic/server-5.8.6

--------------------------------------------------------------------------------

 

        HQ-Server部署文档

    8.安装完毕之后,执行启动命令

        /home/hyperic/server-5.8.6/bin/hq-server.sh start

    9.配置agent,在浏览器测试http://192.168.101.16:7080

HQ-Server部署文档

三、参考文档。

1. Ubuntu下安装JDK

        http://www.cnblogs.com/a2211009/p/4265225.html

2. 安装HQ参考教程

http://blog.csdn.net/fenglin20115588/article/details/50536911

  1. 安装HQ参考教程

    http://jingyan.baidu.com/article/624e745966fea034e9ba5a68.html

  2. 安装HQ参考教程

    http://blog.sina.com.cn/s/blog_67fe9ee60102wdh1.html

 

 

 

 

Windows篇(暂时没有此需求,但本文档需要阅读)

  1. 准备工作
    1. 下载软件:

      HQ instller:\\192.168.0.100\个人文件夹\dzs\HQ\hyperic-hq-5.8.6\hyperic-en-5.8.6\hyperic-hq-installer-x86-64-win-5.8.6.zip

      PostgreSQL:略(本次使用的是9.6,资源较多可在网上自行下载)。

    2. 安装并配置PostgreSQL:
      1. 参考文档:http://www.cnblogs.com/liqingwen/p/5894462.html(注意密码)。
      2. 安装配置完成后注意用navicat(或其它工具监测)。

      HQ-Server部署文档

    3. 安装HQ-Server:
    4. 解压hyperic-hq-installer-x86-64-win-5.8.6.zip得到hyperic-hq-installer-5.8.6。
    5. 右键以管理员权限身份运行setup.bat。

      HQ-Server部署文档

    6. 按照教程按步骤安装(有几个注意事项,如图所示)。
      1. 现在只安装HQ Server,所以只选1。
      2. Server安装位置,一定要确认位置是当前用户可读写的(不用管理员权限可读写的,本次选择的是用户根目录,可以是其它可读写的目录)。
      3. 链接URL换成如图所示(去掉默认的参数就行了)。
      4. PostgreSQL数据库帐号密码。
      5. 管理web帐号密码(帐号默认hqadmin,密码最好也设成hqadmin)。
      6. 其它的可以直接默认。

        HQ-Server部署文档

        HQ-Server部署文档

         

    7. 安装Hyperic HQ Server服务。
      1. 成功进行步骤3。

        在步骤3-②选择的目录下会有server-5.8.6目录。

      2. 打开管理员的命令窗口powershell(windows 10下可以在左下角开始图标直接右键,其它操作系统请自行百度)。

        HQ-Server部署文档

      3. Cd命令进入 \server-5.8.6\bin目录。
      4. 运行 ./hq-server install 命令,安装HQ Server服务。
      5. 如图所示即成功安装。

        HQ-Server部署文档

        HQ-Server部署文档

         

    8. 参考文档

      https://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&docType=kc&externalId=2043521&sliceId=1&docTypeID=DT_KB_1_1&dialogID=552164256&stateId=0%200%20552168698

      https://wenku.baidu.com/view/ad3d6ae5ba1aa8114531d9d7.html

相关文章:

  • 2022-01-06
  • 2021-06-11
  • 2021-10-19
  • 2021-06-27
  • 2021-05-19
  • 2021-10-24
  • 2022-12-23
猜你喜欢
  • 2021-04-09
  • 2021-04-19
  • 2021-04-04
  • 2021-05-22
  • 2021-10-05
  • 2021-05-19
相关资源
相似解决方案