标签:style http java os 使用 io strong 文件 for
首先需要安装 postgresql 9.1 ,下载地址,如下:
http://get.enterprisedb.com/postgresql/postgresql-9.1.14-1-windows-x64.exe
安装中需要注意两个地方,一个是 选择 C(你懂的),另一个是注意将 postgres用户赋予安装postgresql的目录的所有权限。
然后使用psql工具,创建数据库 HQ
下载 Hyperic HQ 中文版
http://www.innovatedigital.com/download/hyperic_index.asp
解开后,按照下文:需要输入的内容,已加粗显示,回车除外。
C:\src\hyperic-hq-installer-x86-64-win-5.8.2.1\hyperic-hq-installer-5.8.2.1>setup
Please ignore references to missing tools.jar
Unable to locate tools.jar. Expected to find it in C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\1\lib\tools.jar
Buildfile: C:\src\hyperic-hq-installer-x86-64-win-5.8.2.1\hyperic-hq-installer-5.8.2.1\installer\bin\..\data\setup.xml
Loading taskdefs...
Taskdefs loaded
Initializing Hyperic HQ 5.8.2.1 Installation...
Choose which software to install:
1: Hyperic HQ Server
2: Hyperic HQ Agent
You may enter multiple choices, separated by commas.
1,2
HQ server installation path [default ‘C:\Program Files‘]:
c:\hq
What port should the HQ server‘s web-based GUI listen on for http communication?
[default ‘7080‘]:
What port should the HQ server‘s web-based GUI listen on for secure https communication? [default ‘7443‘]:
Choices:
1: Yes
2: No
Would you like to use your own java keystore? [default ‘2‘]:
Enter the base URL for the HQ server‘s web-based GUI [default ‘http://192.168.1.155:7080/‘]:
Enter the fully qualified domain name of the SMTP server that HQ will use to send email messages [default ‘192.168.1.155‘]:
Enter the email address that HQ will use as the sender for email messages [default ‘hqadmin@168.1.155‘]:
Enter the vPostgres DB hostname [default ‘localhost‘]:
Enter the vPostgres DB port [default ‘5432‘]:
Enter the vPostgres DB name [default ‘HQ‘]:
Override the JDBC connection URL for the PostgreSQL database [default jdbc:postgresql://localhost:5432/HQ?protocolVersion=2‘]:
Enter the username to use to connect to the database:postgres
Enter the password to use to connect to the database.:
(again):
Choices:
1: Yes
2: No
Would you like to use an auto generated encryption key to encrypt the database password? [default ‘1‘]:
What should the username be for the initial admin user? [default ‘hqadmin‘]:
What should the password be for the initial admin user?:
(again):
What should the email address be for the initial admin user? [default ‘hqadmin@168.1.155‘]:
HQ agent installation path [default ‘c:\hq‘]:
Loading install configuration...
Install configuration loaded.
Preparing to install...
Validating agent install configuration...
Validating server install configuration...
Checking server webapp port...
Checking server secure webapp port...
Checking database permissions...
Verifying admin user properties
Validating server DB configuration...
Installing the agent...
Looking for previous installation
Unpacking C:\src\hyperic-hq-installer-x86-64-win-5.8.2.1\hyperic-hq-installer-5.8.2.1\hyperic-hq-agent-x86-64-win-5.8.2.1.zip to: c:\hq/agent-5.8.2.1...
Setting permissions on c:\hq/agent-5.8.2.1...
Setting permissions on c:\hq/agent-5.8.2.1/conf/agent.properties...
Setting permissions on agent binaries...
Fixing line endings on text files...
--------------------------------------------------------------------------------
Installation Complete:
Agent successfully installed to: c:\hq
--------------------------------------------------------------------------------
You can now start your HQ agent by running this command:
c:\hq/agent-5.8.2.1/bin/hq-agent.bat start
Installing the server...
Unpacking server to: c:\hq...
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...
Loading taskdefs...
Taskdefs loaded
Loading taskdefs...
Taskdefs loaded
Loading taskdefs...
Taskdefs loaded
Installing the server JRE ...
Unpacking JRE x86_64-win-1.7_51.exe to: c:\hq/server-5.8.2.1...
Setting permissions on c:\hq/server-5.8.2.1...
Setting permissions on server binaries...
Fixing line endings on text files...
--------------------------------------------------------------------------------
Installation Complete:
Server successfully installed to: c:\hq/server-5.8.2.1
--------------------------------------------------------------------------------
You should now install the HQ server as a Windows Service using this command:
c:\hq\server-5.8.2.1\bin\hq-server.bat install
You can then use the Service Control Manager (Control Panel->Services) to
start the HQ server. Note that the first time the HQ server starts up it may
take several minutes to initialize. Subsequent startups will be much faster.
Once the HQ server reports that it has successfully started, you can log in to your HQ server at:
http://192.168.1.155:7080/
username: hqadmin
To change your password, log in to the HQ server, click the "Administration" link, choose "List Users", then click on the "hqadmin" user.
Setup completed.
A copy of the output shown above has been saved to:
C:\src\hyperic-hq-installer-x86-64-win-5.8.2.1\hyperic-hq-installer-5.8.2.1\installer\logs\hq-install.log
Deleting temporary JRE
C:\src\hyperic-hq-installer-x86-64-win-5.8.2.1\hyperic-hq-installer-5.8.2.1>
C:\src\hyperic-hq-installer-x86-64-win-5.8.2.1\hyperic-hq-installer-5.8.2.1>cd \hq
C:\hq>cd server-5.8.2.1
C:\hq\server-5.8.2.1>dir
驱动器 C 中的卷没有标签。
卷的序列号是 4CFC-32F8
C:\hq\server-5.8.2.1 的目录
2014-08-15 13:48 <DIR> .
2014-08-15 13:48 <DIR> ..
2014-08-15 13:48 <DIR> bin
2014-08-15 13:48 <DIR> conf
2014-08-15 13:48 17,987 COPYING.txt
2014-08-15 13:48 <DIR> data
2014-08-15 13:47 <DIR> hq-engine
2014-08-15 13:48 <DIR> jre
2014-08-15 13:48 <DIR> lib
2014-08-15 13:48 744,766 LICENSE.txt
2014-08-15 13:47 <DIR> logs
2014-07-29 18:20 3,092 README.txt
2014-08-15 13:48 <DIR> wrapper
3 个文件 765,845 字节
10 个目录 37,099,819,008 可用字节
C:\hq\server-5.8.2.1>cd bin
C:\hq\server-5.8.2.1\bin>hq-server.bat status
Usage: hq-server.bat { start : stop : restart : install : query : remove}
请按任意键继续. . .
C:\hq\server-5.8.2.1\bin>hq-server.bat start
wrapper | The Hyperic HQ Server service is not installed - 指定的服务未安装。
(0x424)
请按任意键继续. . .
C:\hq\server-5.8.2.1\bin>hq-server.bat install
wrapper | Hyperic HQ Server service installed.
C:\hq\server-5.8.2.1\bin>hq-server.bat start
wrapper | Starting the Hyperic HQ Server service...
wrapper | Hyperic HQ Server started.
C:\hq\server-5.8.2.1\bin>cd ..\..\agent-5.8.2.1\bin
C:\hq\agent-5.8.2.1\bin>hq-agent.bat install
wrapper | Hyperic HQ Agent service installed.
C:\hq\agent-5.8.2.1\bin>hq-agent.bat start
wrapper | Starting the Hyperic HQ Agent service...
wrapper | Hyperic HQ Agent started.
[ Running agent setup ]
What is the HQ server IP address: localhost
Should Agent communications to HQ always be secure [default=yes]:
What is the HQ server SSL port [default=7443]:
- Testing secure connection ... Success
What is your HQ login [default=hqadmin]:
What is your HQ password:
What IP should HQ use to contact the agent [default=192.168.1.155]:
What port should HQ use to contact the agent [default=2144]:
- Received temporary auth token from agent
- Registering agent with HQ
The server to agent communication channel is using a self-signed certificate and could not be verified
Are you sure you want to continue connecting? [default=no]: yes
- HQ gave us the following agent token
1408081862616-5115392344881550134-7446229445133403575
- Informing agent of new HQ server
- Validating
- Successfully setup agent
C:\hq\agent-5.8.2.1\bin>
打开浏览器,访问 http://localhost:7080/
在Windows 2003 server 64bit 安装 HQ CRP 5.8.2.1
标签:style http java os 使用 io strong 文件 for
原文地址:http://my.oschina.net/hyperichq/blog/306154